]> git.baikalelectronics.ru Git - kernel.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:03:33 +0000 (14:03 +0100)
commitfaceacfd85961678633a206a95ec5e0394ae6bc5
tree41b09abcea0ba04a4a860afe7f2eac801fc3cbaa
parentee5e3e3a6c33a7a9f21a99606a88ec8c03e42ae0
net/mlx5: DR, Check force-loopback RC QP capability independently from RoCE

commit c7dd225bc224726c22db08e680bf787f60ebdee3 upstream.

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: 1743f9ab64af ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c
include/linux/mlx5/mlx5_ifc.h