net:ethernet:aquantia: Fix for multicast filter handling.
authorIgor Russkikh <Igor.Russkikh@aquantia.com>
Mon, 28 Aug 2017 18:52:12 +0000 (21:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 22:11:44 +0000 (15:11 -0700)
commitb21f502f84be082fb63cca8e7ab6eb8f7ee88024
tree44fb2a3f0c48a1a32ab7266e8c785eadf37d2566
parentbd8ed4415ff8584ccdd1f61c8d7279dc1f9e623e
net:ethernet:aquantia: Fix for multicast filter handling.

Since the HW supports up to 32 multicast filters we should
track count of multicast filters to avoid overflow.
If we attempt to add >32 multicast filter - just set NETIF_ALLMULTI flag
instead.

Fixes: 94f6c9e4cdf6 ("net: ethernet: aquantia: Support for NIC-specific code")
Signed-off-by: Igor Russkikh <Igor.Russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c