summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorTristram Ha <Tristram.Ha@microchip.com>2019-02-08 05:05:58 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-11 21:46:51 +0100
commitcbd72b485214f085a022b56a3051524577d891fe (patch)
tree71e02ff49751f98d33a780b73ec59604a6411ddf /net/dsa
parentMerge branch 'net-phy-register-modifying-helpers' (diff)
downloadlinux-cbd72b485214f085a022b56a3051524577d891fe.tar.xz
linux-cbd72b485214f085a022b56a3051524577d891fe.zip
net: dsa: microchip: add switch offload forwarding support
The flag offload_fwd_mark is set as the switch can forward frames by itself. This can be considered a fix to a problem introduced in commit c2e866911e254067 where the port membership are not set in sync. The flag offload_fwd_mark just needs to be set in tag_ksz.c to prevent the software bridge from forwarding duplicate multicast frames. Fixes: c2e866911e254067 ("microchip: break KSZ9477 DSA driver into two files") Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/tag_ksz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dsa/tag_ksz.c b/net/dsa/tag_ksz.c
index da71b9e2af52..927e9c86f745 100644
--- a/net/dsa/tag_ksz.c
+++ b/net/dsa/tag_ksz.c
@@ -67,6 +67,8 @@ static struct sk_buff *ksz_common_rcv(struct sk_buff *skb,
pskb_trim_rcsum(skb, skb->len - len);
+ skb->offload_fwd_mark = true;
+
return skb;
}