Skip to content

Commit 00679b6

Browse files
mikijoyLeon Romanovsky
authored andcommitted
net/mlx5: Set ODP capabilities for DC transport to max
In mlx5_core initialization, query max ODP capabilities for DC transport from FW and set as current capabilities. Signed-off-by: Michael Guralnik <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent bb487d2 commit 00679b6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,12 @@ static int handle_hca_cap_odp(struct mlx5_core_dev *dev)
495495
ODP_CAP_SET_MAX(dev, xrc_odp_caps.write);
496496
ODP_CAP_SET_MAX(dev, xrc_odp_caps.read);
497497
ODP_CAP_SET_MAX(dev, xrc_odp_caps.atomic);
498+
ODP_CAP_SET_MAX(dev, dc_odp_caps.srq_receive);
499+
ODP_CAP_SET_MAX(dev, dc_odp_caps.send);
500+
ODP_CAP_SET_MAX(dev, dc_odp_caps.receive);
501+
ODP_CAP_SET_MAX(dev, dc_odp_caps.write);
502+
ODP_CAP_SET_MAX(dev, dc_odp_caps.read);
503+
ODP_CAP_SET_MAX(dev, dc_odp_caps.atomic);
498504

499505
if (do_set)
500506
err = set_caps(dev, set_ctx, set_sz,

include/linux/mlx5/mlx5_ifc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,9 @@ struct mlx5_ifc_odp_cap_bits {
948948

949949
struct mlx5_ifc_odp_per_transport_service_cap_bits xrc_odp_caps;
950950

951-
u8 reserved_at_100[0x700];
951+
struct mlx5_ifc_odp_per_transport_service_cap_bits dc_odp_caps;
952+
953+
u8 reserved_at_120[0x6E0];
952954
};
953955

954956
struct mlx5_ifc_calc_op {

0 commit comments

Comments
 (0)