summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/quantenna/qtnfmac/switchdev.h
blob: b962e670c4b065ca3d3c0ae6e1de4a858a05f231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (c) 2019 Quantenna Communications. All rights reserved. */

#ifndef QTNFMAC_SWITCHDEV_H_
#define QTNFMAC_SWITCHDEV_H_

#include <linux/skbuff.h>

#ifdef CONFIG_NET_SWITCHDEV

static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
{
	skb->offload_fwd_mark = 1;
}

#else

static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
{
}

#endif

#endif /* QTNFMAC_SWITCHDEV_H_ */