Firmware floods all packets that need to be flooded (multicast, broadcast, unknown unicast) as required. Tell kernel bridge subsystem it does not need to flood packet itself by marking each incoming frame with skb->offload_fwd_mark flag. Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
24 lines
459 B
C
24 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_ */
|