diff options
author | Edward Cree <ecree.xilinx@gmail.com> | 2022-07-20 19:29:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-22 12:50:06 +0100 |
commit | da56552d04c54b68788fb3700b5150814e1de3d1 (patch) | |
tree | 508f369c30d09f59a3d0a2c0754056d98af24e09 /drivers/net/ethernet/sfc/ef100_rep.h | |
parent | sfc: phys port/switch identification for ef100 reps (diff) | |
download | wireguard-linux-da56552d04c54b68788fb3700b5150814e1de3d1.tar.xz wireguard-linux-da56552d04c54b68788fb3700b5150814e1de3d1.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef100_rep.h')
-rw-r--r-- | drivers/net/ethernet/sfc/ef100_rep.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_rep.h b/drivers/net/ethernet/sfc/ef100_rep.h index 235565869619..1d17aaf6cd5c 100644 --- a/drivers/net/ethernet/sfc/ef100_rep.h +++ b/drivers/net/ethernet/sfc/ef100_rep.h @@ -21,6 +21,7 @@ * @parent: the efx PF which manages this representor * @net_dev: representor netdevice * @msg_enable: log message enable flags + * @mport: m-port ID of corresponding VF * @idx: VF index * @list: entry on efx->vf_reps */ @@ -28,6 +29,7 @@ struct efx_rep { struct efx_nic *parent; struct net_device *net_dev; u32 msg_enable; + u32 mport; unsigned int idx; struct list_head list; }; |