]> 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)
commit3a9c3729067eac4076d760067ba03dc3a35eb5b0
tree0e168703781adefd77a395a5b90f0222afb3e641
parent69e8539aab36958e811ee5507863381c377c8e3a
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