]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Check force-loopback RC QP capability independently from RoCE
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 2 Apr 2023 14:14:10 +0000 (17:14 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 23 May 2023 05:38:05 +0000 (22:38 -0700)
commitc7dd225bc224726c22db08e680bf787f60ebdee3
treeb4b4afc90e67f4a0e6f9b0130481c99ef99beed4
parent1e5daf5565b61a96e570865091589afc9156e3d3
net/mlx5: DR, Check force-loopback RC QP capability independently from RoCE

SW Steering uses RC QP for writing STEs to ICM. This writingis done in LB
(loopback), and FL (force-loopback) QP is preferred for performance. FL is
available when RoCE is enabled or disabled based on RoCE caps.
This patch adds reading of FL capability from HCA caps in addition to the
existing reading from RoCE caps, thus fixing the case where we didn't
have loopback enabled when RoCE was disabled.

Fixes: 7304d603a57a ("net/mlx5: DR, Add support for force-loopback QP")
Signed-off-by: Itamar Gozlan <igozlan@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c
include/linux/mlx5/mlx5_ifc.h