]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: Fix IFF_ALLMULTI flag functionality
authorDmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Wed, 8 Aug 2018 11:06:32 +0000 (14:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 02:12:58 +0000 (19:12 -0700)
commit66f2c9b58931c3823802062a2776430be50bb548
tree467857ef1ef624d68d9b182d936157dd22e9e962
parent080495f1f4bcd305271f483e80f2cf1adedea302
net: aquantia: Fix IFF_ALLMULTI flag functionality

It was noticed that NIC always pass all multicast traffic to the host
regardless of IFF_ALLMULTI flag on the interface.
The rule in MC Filter Table in NIC, that is configured to accept any
multicast packets, is turning on if IFF_MULTICAST flag is set on the
interface. It leads to passing all multicast traffic to the host.
This fix changes the condition to turn on that rule by checking
IFF_ALLMULTI flag as it should.

Fixes: dc585079d497 ("net:ethernet:aquantia: Fix for multicast filter handling.")
Signed-off-by: Dmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c