]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6481870eb2fe8bad2f3218c99777490c1450c43
tree01583ad3eddf2d1a4bb48431d1da9f4c85919ed8
parentc554ec2ddec8689c625a6904d288b6975bf09bc2
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