Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd02ef8e authored by Maor Gottlieb's avatar Maor Gottlieb Committed by David S. Miller
Browse files

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: default avatarMaor Gottlieb <maorg@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 876d634d
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -1846,6 +1846,7 @@ int mlx5_init_fs(struct mlx5_core_dev *dev)
	}

	if (MLX5_CAP_GEN(dev, eswitch_flow_table)) {
		if (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, ft_support)) {
			err = init_fdb_root_ns(dev);
			if (err)
				goto err;
@@ -1860,6 +1861,7 @@ int mlx5_init_fs(struct mlx5_core_dev *dev)
			if (err)
				goto err;
		}
	}

	return 0;
err: