net: dsa: microchip: add switch offload forwarding support
authorTristram Ha <Tristram.Ha@microchip.com>
Fri, 8 Feb 2019 04:05:58 +0000 (20:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2019 20:46:51 +0000 (12:46 -0800)
commitcbd72b485214f085a022b56a3051524577d891fe
tree71e02ff49751f98d33a780b73ec59604a6411ddf
parent6a98afbbb4afe701bf8e0b74b4d9ea818966539e
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>
drivers/net/dsa/microchip/ksz9477.c
net/dsa/tag_ksz.c