common/sfc_efx/base: support unprivileged MAE clients
authorViacheslav Galaktionov <viacheslav.galaktionov@oktetlabs.ru>
Fri, 15 Oct 2021 06:49:01 +0000 (09:49 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 Oct 2021 18:56:02 +0000 (20:56 +0200)
commit40ccb311584f63b702d86456bad31cce6fe89865
tree45875d2c2135f2765c30f52511c4191e3b3e39ee
parentd1576625f70bae15bbbfc952a61cb0cc8120014f
common/sfc_efx/base: support unprivileged MAE clients

In order to differentiate between privileged and unprivileged MAE clients,
add a separate boolean flag to represent a NIC's MAE privilege level.

Allow initializing unprivileged MAE clients by avoiding calls to functions
that can only be called by the admin NIC.

Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/ef10_nic.c
drivers/common/sfc_efx/base/efx.h
drivers/common/sfc_efx/base/siena_nic.c