net: aquantia: correctly handle macvlan and multicast coexistence
authorDmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Fri, 11 Oct 2019 13:45:23 +0000 (13:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Oct 2019 00:01:53 +0000 (17:01 -0700)
commit9f051db566da1e8110659ab4ab188af1c2510bb4
treee10b0f7064d0a8907cce0b1ab5e871e8dd8228e7
parentd08b9a0a3ebdf71b0aabe576c7dd48e57e80e0f0
net: aquantia: correctly handle macvlan and multicast coexistence

macvlan and multicast handling is now mixed up.
The explicit issue is that macvlan interface gets broken (no traffic)
after clearing MULTICAST flag on the real interface.

We now do separate logic and consider both ALLMULTI and MULTICAST
flags on the device.

Fixes: 11ba961c9161 ("net: aquantia: Fix IFF_ALLMULTI flag functionality")
Signed-off-by: Dmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_main.c
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c