hsr_forward.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright 2011-2014 Autronica Fire and Security AS
  3. *
  4. * Author(s):
  5. * 2011-2014 Arvid Brodin, arvid.brodin@alten.se
  6. *
  7. * include file for HSR and PRP.
  8. */
  9. #ifndef __HSR_FORWARD_H
  10. #define __HSR_FORWARD_H
  11. #include <linux/netdevice.h>
  12. #include "hsr_main.h"
  13. void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
  14. struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
  15. struct hsr_port *port);
  16. struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame,
  17. struct hsr_port *port);
  18. struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame,
  19. struct hsr_port *port);
  20. struct sk_buff *prp_get_untagged_frame(struct hsr_frame_info *frame,
  21. struct hsr_port *port);
  22. bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
  23. int prp_fill_frame_info(__be16 proto, struct sk_buff *skb,
  24. struct hsr_frame_info *frame);
  25. int hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
  26. struct hsr_frame_info *frame);
  27. #endif /* __HSR_FORWARD_H */