Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /* Copyright (c) 2019 Quantenna Communications. All rights reserved. */
0003 
0004 #ifndef QTNFMAC_SWITCHDEV_H_
0005 #define QTNFMAC_SWITCHDEV_H_
0006 
0007 #include <linux/skbuff.h>
0008 
0009 #ifdef CONFIG_NET_SWITCHDEV
0010 
0011 static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
0012 {
0013     skb->offload_fwd_mark = 1;
0014 }
0015 
0016 #else
0017 
0018 static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
0019 {
0020 }
0021 
0022 #endif
0023 
0024 #endif /* QTNFMAC_SWITCHDEV_H_ */