2019-04-06 01:31:34 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-07-05 05:41:03 +08:00
|
|
|
/* Copyright 2011-2014 Autronica Fire and Security AS
|
|
|
|
*
|
|
|
|
* Author(s):
|
|
|
|
* 2011-2014 Arvid Brodin, arvid.brodin@alten.se
|
2020-07-22 22:40:16 +08:00
|
|
|
*
|
|
|
|
* include file for HSR and PRP.
|
2014-07-05 05:41:03 +08: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 22:40:21 +08:00
|
|
|
struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
|
|
|
|
struct hsr_port *port);
|
2020-07-22 22:40:20 +08: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 22:40:21 +08: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-10 09:02:11 +08:00
|
|
|
bool hsr_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
|
2020-07-22 22:40:21 +08:00
|
|
|
void prp_fill_frame_info(__be16 proto, struct sk_buff *skb,
|
|
|
|
struct hsr_frame_info *frame);
|
2020-07-22 22:40:20 +08:00
|
|
|
void hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
|
|
|
|
struct hsr_frame_info *frame);
|
2014-07-05 05:41:03 +08:00
|
|
|
#endif /* __HSR_FORWARD_H */
|