]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/mlx5: Support deferred rate limit configuration
authorMaher Sanalla <msanalla@nvidia.com>
Sun, 24 May 2026 15:38:05 +0000 (18:38 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 11 Jun 2026 11:02:05 +0000 (07:02 -0400)
commit915bbc8578e3f784b35bd9e5fa06a3b0720eb292
tree17eae72ce256a088fd4a44d2b09cab198c354fa1
parent29e0a014ddfbdbd6b02684304dddbcf9161034ae
RDMA/mlx5: Support deferred rate limit configuration

Allow passing a rate limit attribute in modify QP flows even when the
QP is in a state that does not support packet pacing programming in
the lower layers.

When the user sets a rate limit during a QP transition that is not to
RTS, store the value in the mlx5 QP struct and program it to FW when
the QP later transitions to RTS, which is the state that allows
configuring the rate limit index in the QP context.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Michael Guralnik <michaelgur@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20260524-packet-pacing-v1-4-3d79439f8d08@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c