]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: handle mac filter overflow
authorShannon Nelson <snelson@pensando.io>
Thu, 26 Aug 2021 01:24:50 +0000 (18:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 08:41:50 +0000 (09:41 +0100)
commit21316e45964b44c9813b77c6afee9f14b09aca1f
tree440811c4f475f9ef3c0b72d00882ff84d4c4c6b0
parentf4e42782695349d4ceb0dd3302f7bccdfc0a0128
ionic: handle mac filter overflow

Make sure we go into PROMISC mode when we have too many
filters by specifically counting the filters that successfully
get saved to the firmware.

The device advertises max_ucast_filters and max_mcast_filters,
but really only has max_ucast_filters slots available for
uc and mc filters combined.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c