diff options
author | Maor Gottlieb <maorg@mellanox.com> | 2016-07-04 14:23:06 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-05 07:06:02 (GMT) |
commit | fba53f7b571925b8a0d59d460ad6de1fda928a3e (patch) | |
tree | 9392e6c04eecfbe3e9668d78b64bc2b8297ecfc9 /drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | |
parent | c5bb17302e734967822be559cf661704b707b4ed (diff) | |
download | linux-fba53f7b571925b8a0d59d460ad6de1fda928a3e.tar.xz |
net/mlx5: Introduce mlx5_flow_steering structure
Instead of having all steering private name spaces and
steering module fields flat in mlx5_core_priv, we wrap
them in mlx5_flow_steering for better modularity and
API exposure.
Signed-off-by: Maor Gottlieb <maorg@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/fs_core.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h index aa41a73..d7ba91a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h @@ -55,6 +55,14 @@ enum fs_fte_status { FS_FTE_STATUS_EXISTING = 1UL << 0, }; +struct mlx5_flow_steering { + struct mlx5_core_dev *dev; + struct mlx5_flow_root_namespace *root_ns; + struct mlx5_flow_root_namespace *fdb_root_ns; + struct mlx5_flow_root_namespace *esw_egress_root_ns; + struct mlx5_flow_root_namespace *esw_ingress_root_ns; +}; + struct fs_node { struct list_head list; struct list_head children; |