public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-rext V3 0/5] RDMA/bnxt_re: Add QP rate limit support
@ 2026-02-02  4:51 Kalesh AP
  2026-02-02  4:51 ` [PATCH rdma-rext V3 1/5] RDMA/bnxt_re: Add support for QP rate limiting Kalesh AP
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Kalesh AP @ 2026-02-02  4:51 UTC (permalink / raw)
  To: leon, jgg; +Cc: linux-rdma, andrew.gospodarek, selvin.xavier, Kalesh AP

Hi,

This patchset supports QP rate limit in the bnxt_re driver.

Broadcom P7 devices supports setting the rate limit while changing
RC QP state from INIT to RTR, RTR to RTS and RTS to RTS. Or, once
the QP is transitioned to RTR or RTS state.


Patch#1 adds support for QP rate limiting in the bnxt_re driver.
Patch#2 adds support to report packet pacing capabilities in the
query_device.
Patch#3 adds support to report QP rate limit in debugfs QP info.
Patch#4 adds a check in mlx5 driver to support QP rate limit only
on Raw Ethernet QPs.
Patch#5 adds stack support for rate limit for RC QPs.

The pull request for rdma-core changes are at:

https://github.com/linux-rdma/rdma-core/pull/1692

V2->V3:
1. re-ordered the patches in the series so that kernel changes will be
added as last patch.
2. removed a defensive check from Patch#1

V1->V2:
1. Added a new patch#5 to limit the support for rate limit only for
Raw Packet QP on mlx5 hardware.
2. Modified to use ibdev_err instead of dev_err in patch#2. Also,
modified to return error for rate_limit for non RC QPs.

Regards,
Kalesh

Kalesh AP (5):
  RDMA/bnxt_re: Add support for QP rate limiting
  RDMA/bnxt_re: Report packet pacing capabilities when querying device
  RDMA/bnxt_re: Report QP rate limit in debugfs
  RDMA/mlx5: Support rate limit only for Raw Packet QP
  IB/core: Extend rate limit support for RC QPs

 drivers/infiniband/core/verbs.c           |  9 ++++---
 drivers/infiniband/hw/bnxt_re/debugfs.c   | 14 ++++++++--
 drivers/infiniband/hw/bnxt_re/ib_verbs.c  | 33 +++++++++++++++++++++--
 drivers/infiniband/hw/bnxt_re/qplib_fp.c  | 12 ++++++++-
 drivers/infiniband/hw/bnxt_re/qplib_fp.h  |  3 +++
 drivers/infiniband/hw/bnxt_re/qplib_res.h |  6 +++++
 drivers/infiniband/hw/bnxt_re/qplib_sp.c  |  5 ++++
 drivers/infiniband/hw/bnxt_re/qplib_sp.h  |  2 ++
 drivers/infiniband/hw/bnxt_re/roce_hsi.h  | 13 ++++++---
 drivers/infiniband/hw/mlx5/qp.c           |  5 ++++
 include/uapi/rdma/bnxt_re-abi.h           | 16 +++++++++++
 11 files changed, 106 insertions(+), 12 deletions(-)

-- 
2.43.5


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-02-02 12:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02  4:51 [PATCH rdma-rext V3 0/5] RDMA/bnxt_re: Add QP rate limit support Kalesh AP
2026-02-02  4:51 ` [PATCH rdma-rext V3 1/5] RDMA/bnxt_re: Add support for QP rate limiting Kalesh AP
2026-02-02 12:17   ` Leon Romanovsky
2026-02-02 12:51     ` Kalesh Anakkur Purayil
2026-02-02  4:51 ` [PATCH rdma-rext V3 2/5] RDMA/bnxt_re: Report packet pacing capabilities when querying device Kalesh AP
2026-02-02  4:51 ` [PATCH rdma-rext V3 3/5] RDMA/bnxt_re: Report QP rate limit in debugfs Kalesh AP
2026-02-02  4:51 ` [PATCH rdma-rext V3 4/5] RDMA/mlx5: Support rate limit only for Raw Packet QP Kalesh AP
2026-02-02  4:51 ` [PATCH rdma-rext V3 5/5] IB/core: Extend rate limit support for RC QPs Kalesh AP

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox