]> 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)
commitdc585079d49725d3544df0dd73cde1753661dfdb
tree44fb2a3f0c48a1a32ab7266e8c785eadf37d2566
parenta85b870478b552f08195822070c162d1b97e60e8
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