]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84b2bfeb18923779241a2c756ad9ca0aec3bb77b
tree44fb2a3f0c48a1a32ab7266e8c785eadf37d2566
parent3ab4cd0585c725eafb7eebc8819e90f6de52afde
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