switchdev.h 459 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /* Copyright (c) 2019 Quantenna Communications. All rights reserved. */
  3. #ifndef QTNFMAC_SWITCHDEV_H_
  4. #define QTNFMAC_SWITCHDEV_H_
  5. #include <linux/skbuff.h>
  6. #ifdef CONFIG_NET_SWITCHDEV
  7. static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
  8. {
  9. skb->offload_fwd_mark = 1;
  10. }
  11. #else
  12. static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
  13. {
  14. }
  15. #endif
  16. #endif /* QTNFMAC_SWITCHDEV_H_ */