提交 bd02ef8e 编写于 作者: M Maor Gottlieb 提交者: David S. Miller

net/mlx5: Fix E-Switch flow steering capabilities check

Add missing capabilities check for E-Switch FDB and ACLs flow
tables before creating their namespace in flow steering.

Fixes: efdc810b ('net/mlx5: Flow steering, Add vport ACL support')
Signed-off-by: NMaor Gottlieb <maorg@mellanox.com>
Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 876d634d
...@@ -1846,19 +1846,21 @@ int mlx5_init_fs(struct mlx5_core_dev *dev) ...@@ -1846,19 +1846,21 @@ int mlx5_init_fs(struct mlx5_core_dev *dev)
} }
if (MLX5_CAP_GEN(dev, eswitch_flow_table)) { if (MLX5_CAP_GEN(dev, eswitch_flow_table)) {
err = init_fdb_root_ns(dev); if (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, ft_support)) {
if (err) err = init_fdb_root_ns(dev);
goto err; if (err)
} goto err;
if (MLX5_CAP_ESW_EGRESS_ACL(dev, ft_support)) { }
err = init_egress_acl_root_ns(dev); if (MLX5_CAP_ESW_EGRESS_ACL(dev, ft_support)) {
if (err) err = init_egress_acl_root_ns(dev);
goto err; if (err)
} goto err;
if (MLX5_CAP_ESW_INGRESS_ACL(dev, ft_support)) { }
err = init_ingress_acl_root_ns(dev); if (MLX5_CAP_ESW_INGRESS_ACL(dev, ft_support)) {
if (err) err = init_ingress_acl_root_ns(dev);
goto err; if (err)
goto err;
}
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册