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 commitc2e866911ewhere 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:c2e866911e("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>
This commit is contained in:
committed by
David S. Miller
parent
6a98afbbb4
commit
cbd72b4852
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user