2019-04-05 20:31:34 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-07-05 01: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 17:40:16 +03:00
|
|
|
*
|
|
|
|
* include file for HSR and PRP.
|
2014-07-05 01: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 17:40:21 +03:00
|
|
|
struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
|
|
|
|
struct hsr_port *port);
|
2020-07-22 17:40:20 +03: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 17:40:21 +03: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 04:02:11 +03:00
|
|
|
bool hsr_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
|
2021-05-24 21:50:54 +03: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-05 01:41:03 +04:00
|
|
|
#endif /* __HSR_FORWARD_H */
|