VFs (as well as unpriviledged PFs) are not always allowed to enable promiscuous and all-multicast. Handle it properly and ensure consistency for settings applied and reported.
Base driver patches have warnings/errors from checkpatch.sh since coding style differs a bit. Return of non-negative errno is OK as well, since driver does positive to negative errno conversion on return from callbacks. Igor Romanov (6): net/sfc/base: refactor filters cleanup in reconfigure net/sfc/base: refactor filters mark in reconfigure net/sfc/base: refactor unicast filters reconfiguration net/sfc/base: refactor mcast filters reconfiguration net/sfc/base: add API to get currently operating filters net/sfc: check actual all multicast unknown unicast filters drivers/net/sfc/base/ef10_filter.c | 314 +++++++++++++++++++---------- drivers/net/sfc/base/efx.h | 6 + drivers/net/sfc/base/efx_impl.h | 2 + drivers/net/sfc/base/efx_mac.c | 15 ++ drivers/net/sfc/base/siena_mac.c | 2 + drivers/net/sfc/sfc.h | 1 + drivers/net/sfc/sfc_ethdev.c | 16 +- drivers/net/sfc/sfc_port.c | 62 +++++- drivers/net/sfc/sfc_rx.c | 4 +- 9 files changed, 310 insertions(+), 112 deletions(-) -- 2.17.1