sfc: determine representee m-port for EF100 representors
authorEdward Cree <ecree.xilinx@gmail.com>
Wed, 20 Jul 2022 18:29:34 +0000 (19:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2022 11:50:06 +0000 (12:50 +0100)
commitda56552d04c54b68788fb3700b5150814e1de3d1
tree508f369c30d09f59a3d0a2c0754056d98af24e09
parente1479556f808b1702a0cb83e823784ccf67c305d
sfc: determine representee m-port for EF100 representors

An MAE port, or m-port, is a port (source/destination for traffic) on
 the Match-Action Engine (the internal switch on EF100).
Representors will use their representee's m-port for two purposes: as
 a destination override on TX from the representor, and as a source
 match in 'default rules' to steer representee traffic (when not
 matched by e.g. a TC flower rule) to representor RX via the parent
 PF's receive queue.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/Makefile
drivers/net/ethernet/sfc/ef100_rep.c
drivers/net/ethernet/sfc/ef100_rep.h
drivers/net/ethernet/sfc/mae.c [new file with mode: 0644]
drivers/net/ethernet/sfc/mae.h [new file with mode: 0644]