]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: detect ef100 MAE admin privilege/capability at probe time
authorEdward Cree <ecree.xilinx@gmail.com>
Wed, 20 Jul 2022 18:29:26 +0000 (19:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2022 11:50:06 +0000 (12:50 +0100)
commit1a866528a7fa6e8eb3fcdc3bf21bce4edbad40c5
tree23228db644623fe1fae90c8e40c2523c2cd68d08
parentfabaadbb6eecc133102d2d68fded5986c7cb5c45
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>
drivers/net/ethernet/sfc/ef100_nic.c
drivers/net/ethernet/sfc/ef100_nic.h
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h