repo: https://github.com/T-head-Semi/linux commit: b1313fe517ca3703119dcc99ef3bbf75ab42bcfb Change-Id: I6cbb35294024ea3a66140e311f4bb705fd7fd626
25 lines
459 B
C
25 lines
459 B
C
/* 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_ */
|