aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMaor Gottlieb <maorg@mellanox.com>2016-07-04 17:23:06 +0300
committerDavid S. Miller <davem@davemloft.net>2016-07-05 00:06:02 -0700
commitfba53f7b571925b8a0d59d460ad6de1fda928a3e (patch)
tree9392e6c04eecfbe3e9668d78b64bc2b8297ecfc9 /include
parentnet/mlx5: Refactor mlx5_add_flow_rule (diff)
downloadlinux-dev-fba53f7b571925b8a0d59d460ad6de1fda928a3e.tar.xz
linux-dev-fba53f7b571925b8a0d59d460ad6de1fda928a3e.zip
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 'include')
-rw-r--r--include/linux/mlx5/driver.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index e22b3456b2ee..f21c45941887 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -550,14 +550,10 @@ struct mlx5_priv {
struct list_head ctx_list;
spinlock_t ctx_lock;
+ struct mlx5_flow_steering *steering;
struct mlx5_eswitch *eswitch;
struct mlx5_core_sriov sriov;
unsigned long pci_dev_data;
- 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 mlx5_fc_stats fc_stats;
struct mlx5_rl_table rl_table;
};