Skip to content

Commit ef1749d

Browse files
PatrisiousHaddadkuba-moo
authored andcommitted
net/mlx5: fs, Add support for RDMA RX steering over IB link layer
Relax the capability check for creating the RDMA RX steering domain by considering only the capabilities reported by the firmware as necessary for its creation, which in turn allows RDMA RX creation over devices with IB link layer as well. The table_miss_action_domain capability is required only for a specific priority, which is handled in mlx5_rdma_enable_roce_steering(). The additional capability check for this case is already in place. Signed-off-by: Patrisious Haddad <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f440d69 commit ef1749d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ static int mlx5_cmd_update_root_ft(struct mlx5_flow_root_namespace *ns,
217217
int err;
218218

219219
if ((MLX5_CAP_GEN(dev, port_type) == MLX5_CAP_PORT_TYPE_IB) &&
220-
underlay_qpn == 0)
220+
underlay_qpn == 0 &&
221+
(ft->type != FS_FT_RDMA_RX && ft->type != FS_FT_RDMA_TX))
221222
return 0;
222223

223224
if (ft->type == FS_FT_FDB &&

drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3665,8 +3665,7 @@ int mlx5_fs_core_init(struct mlx5_core_dev *dev)
36653665
goto err;
36663666
}
36673667

3668-
if (MLX5_CAP_FLOWTABLE_RDMA_RX(dev, ft_support) &&
3669-
MLX5_CAP_FLOWTABLE_RDMA_RX(dev, table_miss_action_domain)) {
3668+
if (MLX5_CAP_FLOWTABLE_RDMA_RX(dev, ft_support)) {
36703669
err = init_rdma_rx_root_ns(steering);
36713670
if (err)
36723671
goto err;

0 commit comments

Comments
 (0)