diff options
author | 2022-07-20 19:29:26 +0100 | |
---|---|---|
committer | 2022-07-22 12:50:06 +0100 | |
commit | 95287e1b4e5c656ad3abfbf27f0249792251dd9e (patch) | |
tree | 23228db644623fe1fae90c8e40c2523c2cd68d08 /drivers/net/ethernet/sfc/ef100_nic.h | |
parent | sfc: update EF100 register descriptions (diff) | |
download | linux-dev-95287e1b4e5c656ad3abfbf27f0249792251dd9e.tar.xz linux-dev-95287e1b4e5c656ad3abfbf27f0249792251dd9e.zip |
sfc: detect ef100 MAE admin privilege/capability at probe time
One PCIe function per network port (more precisely, per m-port group) is
responsible for configuring the Match-Action Engine which performs
switching and packet modification in the slice to support flower/OVS
offload. The GRP_MAE bit in the privilege mask indicates whether a
given function has this capability.
At probe time, call MCDIs to read the calling function's privilege mask,
and store the GRP_MAE bit in a new ef100_nic_data member.
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef100_nic.h')
-rw-r--r-- | drivers/net/ethernet/sfc/ef100_nic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_nic.h b/drivers/net/ethernet/sfc/ef100_nic.h index 744dbbdb4adc..40f84a275057 100644 --- a/drivers/net/ethernet/sfc/ef100_nic.h +++ b/drivers/net/ethernet/sfc/ef100_nic.h @@ -72,6 +72,7 @@ struct ef100_nic_data { u8 port_id[ETH_ALEN]; DECLARE_BITMAP(evq_phases, EFX_MAX_CHANNELS); u64 stats[EF100_STAT_COUNT]; + bool grp_mae; /* MAE Privilege */ u16 tso_max_hdr_len; u16 tso_max_payload_num_segs; u16 tso_max_frames; |