blob: 618140d484ad6fe3c270026c88337f837c8c0eef [file] [log] [blame]
Murali Karicheri0e7623b2019-04-05 13:31:34 -04001/* SPDX-License-Identifier: GPL-2.0 */
Arvid Brodinf266a682014-07-04 23:41:03 +02002/* Copyright 2011-2014 Autronica Fire and Security AS
3 *
Arvid Brodinf266a682014-07-04 23:41:03 +02004 * Author(s):
5 * 2011-2014 Arvid Brodin, arvid.brodin@alten.se
Murali Karicheri8f4c0e02020-07-22 10:40:16 -04006 *
7 * include file for HSR and PRP.
Arvid Brodinf266a682014-07-04 23:41:03 +02008 */
9
10#ifndef __HSR_FORWARD_H
11#define __HSR_FORWARD_H
12
13#include <linux/netdevice.h>
14#include "hsr_main.h"
15
16void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
Murali Karicheri451d8122020-07-22 10:40:21 -040017struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
18 struct hsr_port *port);
Murali Karicherifa4dc892020-07-22 10:40:20 -040019struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame,
20 struct hsr_port *port);
21struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame,
22 struct hsr_port *port);
Murali Karicheri451d8122020-07-22 10:40:21 -040023struct sk_buff *prp_get_untagged_frame(struct hsr_frame_info *frame,
24 struct hsr_port *port);
25bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
26void prp_fill_frame_info(__be16 proto, struct sk_buff *skb,
27 struct hsr_frame_info *frame);
Murali Karicherifa4dc892020-07-22 10:40:20 -040028void hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
29 struct hsr_frame_info *frame);
Arvid Brodinf266a682014-07-04 23:41:03 +020030#endif /* __HSR_FORWARD_H */