Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright 2011-2014 Autronica Fire and Security AS
0003  *
0004  * Author(s):
0005  *  2011-2014 Arvid Brodin, arvid.brodin@alten.se
0006  *
0007  * include file for HSR and PRP.
0008  */
0009 
0010 #ifndef __HSR_FORWARD_H
0011 #define __HSR_FORWARD_H
0012 
0013 #include <linux/netdevice.h>
0014 #include "hsr_main.h"
0015 
0016 void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
0017 struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
0018                     struct hsr_port *port);
0019 struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame,
0020                     struct hsr_port *port);
0021 struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame,
0022                        struct hsr_port *port);
0023 struct sk_buff *prp_get_untagged_frame(struct hsr_frame_info *frame,
0024                        struct hsr_port *port);
0025 bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
0026 bool hsr_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
0027 int prp_fill_frame_info(__be16 proto, struct sk_buff *skb,
0028             struct hsr_frame_info *frame);
0029 int hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
0030             struct hsr_frame_info *frame);
0031 #endif /* __HSR_FORWARD_H */