common/sfc_efx/base: check for MAE privilege
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 <436a2feb05eb79a6862681e66bd0193220e8fb2d@oktetlabs.ru>
Reviewed-by: Andy Moreton <adbee5d9b6a6a553b71b14302d03837591e26c9d@xilinx.com>
Reviewed-by: Andrew Rybchenko <4155e7bf8e0185127625dac6d84336299844982f@oktetlabs.ru>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk