OSDN Git Service

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)
commit5da1948969bc1991920987ce4361ea56046e5a98
tree0e168703781adefd77a395a5b90f0222afb3e641
parent58bdeac8b0e7ba6a5b60339fe3c197a52715abbf
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