]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Proper handling of unsupported Connect-X6DX SW steering
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Thu, 3 Dec 2020 04:39:46 +0000 (20:39 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 19:18:36 +0000 (11:18 -0800)
commitc9d521946a9353e3b8372973f9ecce112dec5a38
tree4164f2fd5710f5189491f05f97bb010814dd8d25
parent7641c2275bee562e44b18df89bbdb71b272f59fa
net/mlx5: DR, Proper handling of unsupported Connect-X6DX SW steering

STEs format for Connect-X5 and Connect-X6DX different. Currently, on
Connext-X6DX the SW steering would break at some point when building STEs
w/o giving a proper error message. Fix this by checking the STE format of
the current device when initializing domain: add mlx5_ifc definitions for
Connect-X6DX SW steering, read FW capability to get the current format
version, and check this version when domain is being created.

Fixes: 19059f2dc873 ("net/mlx5: DR, Add Steering entry (STE) utilities")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h
include/linux/mlx5/mlx5_ifc.h