diff options
author | Tristram Ha <Tristram.Ha@microchip.com> | 2019-02-07 20:05:58 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-11 12:46:51 -0800 |
commit | cbd72b485214f085a022b56a3051524577d891fe (patch) | |
tree | 71e02ff49751f98d33a780b73ec59604a6411ddf /net/dsa | |
parent | 6a98afbbb4afe701bf8e0b74b4d9ea818966539e (diff) |
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.c | 2 |
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; } |