]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a313018c78dee80c3c65e60bdc14128018c94a7
tree71e02ff49751f98d33a780b73ec59604a6411ddf
parenta1eb4e227652b98c7f808c0aac4ccaf728a2d078
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
b3ff1b75d524fc47 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: b3ff1b75d524fc47 ("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