summaryrefslogtreecommitdiff
path: root/net/hsr/hsr_forward.h
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2020-07-22 17:40:20 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-27 22:20:40 +0300
commitfa4dc89531360de760359bf94086b04dada98d4e (patch)
tree2e3f088de4fdc10beed19603216e6ceb2da2a272 /net/hsr/hsr_forward.h
parentc643ff0383c858b9af09f582ed2947810e4cf407 (diff)
downloadlinux-fa4dc89531360de760359bf94086b04dada98d4e.tar.xz
net: hsr: define and use proto_ops ptrs to handle hsr specific frames
As a preparatory patch to introduce PRP, refactor the code specific to handling HSR frames into separate functions and call them through proto_ops function pointers. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr/hsr_forward.h')
-rw-r--r--net/hsr/hsr_forward.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/hsr/hsr_forward.h b/net/hsr/hsr_forward.h
index b2a6fa319d94..893207792d56 100644
--- a/net/hsr/hsr_forward.h
+++ b/net/hsr/hsr_forward.h
@@ -14,5 +14,10 @@
#include "hsr_main.h"
void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
-
+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);
+void hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
+ struct hsr_frame_info *frame);
#endif /* __HSR_FORWARD_H */