diff options
author | Or Gerlitz | 2016-07-01 13:50:59 +0200 |
---|---|---|
committer | David S. Miller | 2016-07-02 20:40:40 +0200 |
commit | c116c6eec6f72aac82ff4228ab1d277f3f9a2460 (patch) | |
tree | d4c57d784834d1609b31608be0369a5860c0dd05 /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | |
parent | net/mlx5: Introduce offloads steering namespace (diff) | |
download | kernel-qcow2-linux-c116c6eec6f72aac82ff4228ab1d277f3f9a2460.tar.gz kernel-qcow2-linux-c116c6eec6f72aac82ff4228ab1d277f3f9a2460.tar.xz kernel-qcow2-linux-c116c6eec6f72aac82ff4228ab1d277f3f9a2460.zip |
net/mlx5: E-Switch, Add offloads table
Belongs to the NIC offloads name-space, and to be used as part of the
SRIOV offloads logic to steer packets that hit the e-switch miss rule
to the TIR of the relevant VF representor.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h index b7fabd1b97d6..32db37ab867f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h @@ -155,6 +155,10 @@ enum { SRIOV_OFFLOADS }; +struct mlx5_esw_offload { + struct mlx5_flow_table *ft_offloads; +}; + struct mlx5_eswitch { struct mlx5_core_dev *dev; struct mlx5_l2_table l2_table; @@ -169,6 +173,7 @@ struct mlx5_eswitch { */ struct mutex state_lock; struct esw_mc_addr *mc_promisc; + struct mlx5_esw_offload offloads; int mode; }; |