Murali Karicheri | 0e7623b | 2019-04-05 13:31:34 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Arvid Brodin | f266a68 | 2014-07-04 23:41:03 +0200 | [diff] [blame] | 2 | /* Copyright 2011-2014 Autronica Fire and Security AS |
| 3 | * |
Arvid Brodin | f266a68 | 2014-07-04 23:41:03 +0200 | [diff] [blame] | 4 | * Author(s): |
| 5 | * 2011-2014 Arvid Brodin, arvid.brodin@alten.se |
Murali Karicheri | 8f4c0e0 | 2020-07-22 10:40:16 -0400 | [diff] [blame] | 6 | * |
| 7 | * include file for HSR and PRP. |
Arvid Brodin | f266a68 | 2014-07-04 23:41:03 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __HSR_FORWARD_H |
| 11 | #define __HSR_FORWARD_H |
| 12 | |
| 13 | #include <linux/netdevice.h> |
| 14 | #include "hsr_main.h" |
| 15 | |
| 16 | void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port); |
Murali Karicheri | 451d812 | 2020-07-22 10:40:21 -0400 | [diff] [blame] | 17 | struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame, |
| 18 | struct hsr_port *port); |
Murali Karicheri | fa4dc89 | 2020-07-22 10:40:20 -0400 | [diff] [blame] | 19 | struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame, |
| 20 | struct hsr_port *port); |
| 21 | struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame, |
| 22 | struct hsr_port *port); |
Murali Karicheri | 451d812 | 2020-07-22 10:40:21 -0400 | [diff] [blame] | 23 | struct sk_buff *prp_get_untagged_frame(struct hsr_frame_info *frame, |
| 24 | struct hsr_port *port); |
| 25 | bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port); |
| 26 | void prp_fill_frame_info(__be16 proto, struct sk_buff *skb, |
| 27 | struct hsr_frame_info *frame); |
Murali Karicheri | fa4dc89 | 2020-07-22 10:40:20 -0400 | [diff] [blame] | 28 | void hsr_fill_frame_info(__be16 proto, struct sk_buff *skb, |
| 29 | struct hsr_frame_info *frame); |
Arvid Brodin | f266a68 | 2014-07-04 23:41:03 +0200 | [diff] [blame] | 30 | #endif /* __HSR_FORWARD_H */ |