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