]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: fs, add unused destination type
authorMark Bloch <mbloch@nvidia.com>
Tue, 15 Mar 2022 14:08:23 +0000 (14:08 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 3 May 2022 04:21:14 +0000 (21:21 -0700)
commit8bdbb85ac1820ce11376f0bb3ef9b729f7b9308d
tree55a9633653a1009bc6e6978bca3b3af47c20812d
parent3b84c63c194b80eff20d3dd59fbb96a74ff7dc30
net/mlx5: fs, add unused destination type

When the caller doesn't pass a destination fs_core will create a unused
rule just so a context can be returned. This unused rule
is zeroed out and its type is 0 which can be mixed up with
MLX5_FLOW_DESTINATION_TYPE_VPORT.

Create a dedicated type to differentiate between the two
named MLX5_FLOW_DESTINATION_TYPE_NONE.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c
include/linux/mlx5/fs.h