]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0886df199b845bfb4a42897300b6669ab0dd91ae
tree4fe975a09d800aca81573d2b4bc2859c1751a7bf
parent753e596b6e5e145f42c39e3f72c7d8703fd1cb3b
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