OSDN Git Service

net/mlx5: fs, split software and IFC flow destination definitions
authorMark Bloch <mbloch@nvidia.com>
Tue, 22 Mar 2022 09:16:39 +0000 (09:16 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 3 May 2022 04:21:13 +0000 (21:21 -0700)
commitd639af621600dc52dd9ed0dcf62b22595f2f5b52
tree4fe975a09d800aca81573d2b4bc2859c1751a7bf
parentc70c3336a63ef83c1ac057b3321f438ed2a068a3
net/mlx5: fs, split software and IFC flow destination definitions

Separate flow destinations between software and IFC.
Flow destination type passed by callers was used as the input in
firmware commands and over the years software only types were added
which resulted in mixing between the two.

Create an IFC enum that contains only the flow destinations defined
when talking to the firmware.

Now that there is a proper software only enum for flow destinations
the hardcoded values can be removed as the values are no longer used
in firmware commands.

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/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c
include/linux/mlx5/fs.h
include/linux/mlx5/mlx5_ifc.h