Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/mlx5: Support rate limit only for Raw Packet QP

mlx5 based hardware supports rate limiting only on Raw ethernet QPs.
Added an explicit check to fail the operation on any other QP types.
The rate limit support has been enahanced in the stack for RC QPs too.

Compile tested only.

CC: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/20260202133413.3182578-5-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Kalesh AP and committed by
Leon Romanovsky
cae42d97 949e7c06

+5
+5
drivers/infiniband/hw/mlx5/qp.c
··· 4362 4362 optpar |= ib_mask_to_mlx5_opt(attr_mask); 4363 4363 optpar &= opt_mask[mlx5_cur][mlx5_new][mlx5_st]; 4364 4364 4365 + if (attr_mask & IB_QP_RATE_LIMIT && qp->type != IB_QPT_RAW_PACKET) { 4366 + err = -EOPNOTSUPP; 4367 + goto out; 4368 + } 4369 + 4365 4370 if (qp->type == IB_QPT_RAW_PACKET || 4366 4371 qp->flags & IB_QP_CREATE_SOURCE_QPN) { 4367 4372 struct mlx5_modify_raw_qp_param raw_qp_param = {};