common/sfc_efx/base: check for MAE privilege
authorIvan Malov <ivan.malov@oktetlabs.ru>
Fri, 11 Dec 2020 15:34:21 +0000 (18:34 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commitbe2f2be77ce2ee52cbc15ba4831152974990ac5c
tree3e1f4563383271dc53d9593642722e684f2a700d
parent1a9e1b7d2734a395269a4d5f8d7bbfc1b47b9ead
common/sfc_efx/base: check for MAE privilege

VFs can't control MAE, so it's important to override the general
MAE capability bit by taking MAE privilege into account. Reorder
the code slightly to have the privileges queried before datapath
capabilities are discovered and add required MAE privilege check.

Fixes: eb4e80085fae ("common/sfc_efx/base: indicate support for MAE")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/common/sfc_efx/base/ef10_nic.c