OSDN Git Service

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)
commita0c007b3f6455641c5ba7fb5c474401d82387121
tree440811c4f475f9ef3c0b72d00882ff84d4c4c6b0
parent8b41517313e571344a116cb75f8fc994c5447ffb
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