OSDN Git Service

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)
commit6510bc0d7cb4119ebe10f9ab43aca6fd0e5f3e73
tree55a9633653a1009bc6e6978bca3b3af47c20812d
parentc3ae3a9cfe2f3cfdea5a990fa96e23aee343fdb9
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