History

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.

Yevgeny Kliteynik committed 3 years ago

Commit c7dd2251 parent 1e5daf52 files · +6 −2Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mlx5/mlx5_ifc.h+3−1
@@ -1705,7 +1705,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { · 1704 unmodified lines
1705 u8 rc[0x1];1705 u8 rc[0x1];
1706 1706
1707 u8 uar_4k[0x1];1707 u8 uar_4k[0x1];
1708 u8 reserved_at_241[0x9];1708 u8 reserved_at_241[0x7];
1709 u8 fl_rc_qp_when_roce_disabled[0x1];
1710 u8 regexp_params[0x1];
1709 u8 uar_sz[0x6];1711 u8 uar_sz[0x6];
1710 u8 port_selection_cap[0x1];1712 u8 port_selection_cap[0x1];
1711 u8 reserved_at_248[0x1];1713 u8 reserved_at_248[0x1];