]> 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)
commit43083123d8e65a4acdb4a0cad1d8d727ead01829
tree440811c4f475f9ef3c0b72d00882ff84d4c4c6b0
parent5039b1683c6a4bb493462d40f1fa789f1f5ef83f
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