]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: fix lost of mcast packets while rx_mode update
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 12 Oct 2018 15:28:15 +0000 (18:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:21:28 +0000 (22:21 -0700)
commitb363cccfbbef4e8b4bf85a54887633331261fc24
tree0e168703781adefd77a395a5b90f0222afb3e641
parent2c94ce39ec1d622cbafaa544e10c490e42b76f26
net: ethernet: ti: cpsw: fix lost of mcast packets while rx_mode update

Whenever kernel or user decides to call rx mode update, it clears
every multicast entry from forwarding table and in some time adds
it again. This time can be enough to drop incoming multicast packets.

That's why clear only staled multicast entries and update or add new
one afterwards.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c