2019-04-05 13:31:34 -04:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-07-04 17:41:03 -04:00
|
|
|
/* Copyright 2011-2014 Autronica Fire and Security AS
|
|
|
|
*
|
|
|
|
* Author(s):
|
|
|
|
* 2011-2014 Arvid Brodin, arvid.brodin@alten.se
|
2020-07-22 10:40:16 -04:00
|
|
|
*
|
|
|
|
* include file for HSR and PRP.
|
2014-07-04 17:41:03 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HSR_FORWARD_H
|
|
|
|
#define __HSR_FORWARD_H
|
|
|
|
|
|
|
|
#include <linux/netdevice.h>
|
|
|
|
#include "hsr_main.h"
|
|
|
|
|
|
|
|
void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
|
2020-07-22 10:40:21 -04:00
|
|
|
struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
|
|
|
|
struct hsr_port *port);
|
2020-07-22 10:40:20 -04:00
|
|
|
struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame,
|
|
|
|
struct hsr_port *port);
|
|
|
|
struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame,
|
|
|
|
struct hsr_port *port);
|
2020-07-22 10:40:21 -04:00
|
|
|
struct sk_buff *prp_get_untagged_frame(struct hsr_frame_info *frame,
|
|
|
|
struct hsr_port *port);
|
|
|
|
bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
|
2021-02-09 20:02:11 -05:00
|
|
|
bool hsr_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
|
2021-05-24 14:50:54 -04:00
|
|
|
int prp_fill_frame_info(__be16 proto, struct sk_buff *skb,
|
|
|
|
struct hsr_frame_info *frame);
|
|
|
|
int hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
|
|
|
|
struct hsr_frame_info *frame);
|
2014-07-04 17:41:03 -04:00
|
|
|
#endif /* __HSR_FORWARD_H */
|