net/mlx5: Refactor mlx5_get_flow_namespace
authorMaor Gottlieb <maorg@nvidia.com>
Wed, 1 Dec 2021 19:36:19 +0000 (11:36 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 14 Dec 2021 00:02:59 +0000 (16:02 -0800)
commit4588fed7beae6d54ef4c67c77fc39364f8fc42af
tree9e90231e51b389a40dbdec66fd13fb2019605d2e
parent22c3f2f56bd9c901e1da69040680c311f310635d
net/mlx5: Refactor mlx5_get_flow_namespace

Have all the namespace type check in the same switch case.

Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c