]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net/mlx5: fs, Add support for RDMA RX steering over IB link layer
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 19 Dec 2024 17:58:41 +0000 (19:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:34:46 +0000 (10:34 -0800)
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 <phaddad@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241219175841.1094544-12-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

index 6bf0aade69d75c9d38997ecef6da899ccb4b82d2..ae20c061e0fb2f9227d6a6514aaaf629ae4acefd 100644 (file)
@@ -217,7 +217,8 @@ static int mlx5_cmd_update_root_ft(struct mlx5_flow_root_namespace *ns,
        int err;
 
        if ((MLX5_CAP_GEN(dev, port_type) == MLX5_CAP_PORT_TYPE_IB) &&
-           underlay_qpn == 0)
+           underlay_qpn == 0 &&
+           (ft->type != FS_FT_RDMA_RX && ft->type != FS_FT_RDMA_TX))
                return 0;
 
        if (ft->type == FS_FT_FDB &&
index ae1a5705b26ddeedccbb131689e2f23df6f5e601..41b5e98a04952f7273b1d61b820dab0c0397bf04 100644 (file)
@@ -3665,8 +3665,7 @@ int mlx5_fs_core_init(struct mlx5_core_dev *dev)
                        goto err;
        }
 
-       if (MLX5_CAP_FLOWTABLE_RDMA_RX(dev, ft_support) &&
-           MLX5_CAP_FLOWTABLE_RDMA_RX(dev, table_miss_action_domain)) {
+       if (MLX5_CAP_FLOWTABLE_RDMA_RX(dev, ft_support)) {
                err = init_rdma_rx_root_ns(steering);
                if (err)
                        goto err;