net/sfc/base: add API to get currently operating filters
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Mon, 30 Mar 2020 10:25:44 +0000 (11:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commitdb26ec5f4b3d826d39665a64ae48d5162da5e62b
tree98114d5c7bbd4931c1dcf989c35e984619c80b88
parent172751baaa88b1329c55af32e5ff6f44ee70d8e8
net/sfc/base: add API to get currently operating filters

Unknown unicast filter creation may fail because of insufficient
permissions on VF. This failure is handled internally in libefx MAC
reconfiguration without any way for a user to know if it happened.
Making the MAC reconfiguration forward error code of filter
reconfiguration would be too destructive to the existing code
that may rely on the function never returning that error.

Add an API for getting the status of current unknown unicast and
all multicast filters since user must know that requested
filters are actually applied.

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_filter.c
drivers/net/sfc/base/efx.h
drivers/net/sfc/base/efx_impl.h
drivers/net/sfc/base/efx_mac.c
drivers/net/sfc/base/siena_mac.c