sfc: determine wire m-port at EF100 PF probe time
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 28 Jul 2022 18:57:46 +0000 (19:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Jul 2022 04:22:06 +0000 (21:22 -0700)
commit6f6838aabff5ea99af1c78ab02838b8d471f218d
tree01583ad3eddf2d1a4bb48431d1da9f4c85919ed8
parent9fe00c800ecd667acb7748cab7fcd3068c58498a
sfc: determine wire m-port at EF100 PF probe time

Traffic delivered to the (MAE admin) PF could be from either the wire
 or a VF.  The INGRESS_MPORT field of the RX prefix distinguishes these;
 base_mport is the value this field will have for traffic from the wire
 (which should be delivered to the PF's netdevice, not a representor).

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/ef100_nic.c
drivers/net/ethernet/sfc/ef100_nic.h
drivers/net/ethernet/sfc/mae.c
drivers/net/ethernet/sfc/mae.h