diff options
author | Gal Pressman <galp@mellanox.com> | 2017-11-28 11:58:51 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-12-29 00:43:52 +0200 |
commit | 9b93ab981e3bf62ff95a8cbb6faf652cd400decd (patch) | |
tree | 34e27bb7871cc59e32d92c0d721d5d386c02db74 /include/linux/mlx5 | |
parent | 4484e2994887cf57815c8e55ac1f9eaf0036928e (diff) | |
download | linux-9b93ab981e3bf62ff95a8cbb6faf652cd400decd.tar.gz linux-9b93ab981e3bf62ff95a8cbb6faf652cd400decd.tar.bz2 linux-9b93ab981e3bf62ff95a8cbb6faf652cd400decd.zip |
net/mlx5: Separate ingress/egress namespaces for each vport
Each vport has its own root flow table for the ACL flow tables and root
flow table is per namespace, therefore we should create a namespace for
each vport.
Fixes: efdc810ba39d ("net/mlx5: Flow steering, Add vport ACL support")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h index b25e7baa273e..a0b48afcb422 100644 --- a/include/linux/mlx5/fs.h +++ b/include/linux/mlx5/fs.h @@ -95,6 +95,10 @@ struct mlx5_flow_destination { struct mlx5_flow_namespace * mlx5_get_flow_namespace(struct mlx5_core_dev *dev, enum mlx5_flow_namespace_type type); +struct mlx5_flow_namespace * +mlx5_get_flow_vport_acl_namespace(struct mlx5_core_dev *dev, + enum mlx5_flow_namespace_type type, + int vport); struct mlx5_flow_table * mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns, |