Skip to content

Commit ee4d269

Browse files
msanallarleon
authored andcommitted
RDMA/mlx5: Initiate dropless RQ for RAW Ethernet functions
Delay drop data is initiated for PFs that have the capability of rq_delay_drop and are in roce profile. However, PFs with RAW ethernet profile do not initiate delay drop data on function load, causing kernel panic if delay drop struct members are accessed later on in case a dropless RQ is created. Thus, stage the delay drop initialization as part of RAW ethernet PF loading process. Fixes: b5ca15a ("IB/mlx5: Add proper representors support") Signed-off-by: Maher Sanalla <msanalla@nvidia.com> Reviewed-by: Maor Gottlieb <maorg@nvidia.com> Link: https://lore.kernel.org/r/2e9d386785043d48c38711826eb910315c1de141.1685960567.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 2a62b62 commit ee4d269

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • drivers/infiniband/hw/mlx5

drivers/infiniband/hw/mlx5/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4275,6 +4275,9 @@ const struct mlx5_ib_profile raw_eth_profile = {
42754275
STAGE_CREATE(MLX5_IB_STAGE_POST_IB_REG_UMR,
42764276
mlx5_ib_stage_post_ib_reg_umr_init,
42774277
NULL),
4278+
STAGE_CREATE(MLX5_IB_STAGE_DELAY_DROP,
4279+
mlx5_ib_stage_delay_drop_init,
4280+
mlx5_ib_stage_delay_drop_cleanup),
42784281
STAGE_CREATE(MLX5_IB_STAGE_RESTRACK,
42794282
mlx5_ib_restrack_init,
42804283
NULL),

0 commit comments

Comments
 (0)