hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/net/hsr/hsr_forward.h
....@@ -1,12 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /* Copyright 2011-2014 Autronica Fire and Security AS
2
- *
3
- * This program is free software; you can redistribute it and/or modify it
4
- * under the terms of the GNU General Public License as published by the Free
5
- * Software Foundation; either version 2 of the License, or (at your option)
6
- * any later version.
73 *
84 * Author(s):
95 * 2011-2014 Arvid Brodin, arvid.brodin@alten.se
6
+ *
7
+ * include file for HSR and PRP.
108 */
119
1210 #ifndef __HSR_FORWARD_H
....@@ -16,5 +14,17 @@
1614 #include "hsr_main.h"
1715
1816 void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
19
-
17
+struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
18
+ struct hsr_port *port);
19
+struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame,
20
+ struct hsr_port *port);
21
+struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame,
22
+ struct hsr_port *port);
23
+struct sk_buff *prp_get_untagged_frame(struct hsr_frame_info *frame,
24
+ struct hsr_port *port);
25
+bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
26
+int prp_fill_frame_info(__be16 proto, struct sk_buff *skb,
27
+ struct hsr_frame_info *frame);
28
+int hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
29
+ struct hsr_frame_info *frame);
2030 #endif /* __HSR_FORWARD_H */