diff options
| author | Maher Sanalla <msanalla@nvidia.com> | 2026-05-24 18:38:03 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-06-11 14:02:05 +0300 |
| commit | e1008f19fa977d5b7c3912420e3b46b0a33e5316 (patch) | |
| tree | 615020e4eabd759604f98a8964608484bb5e6795 /include/linux/debugobjects.h | |
| parent | a7b8dac8881dc6853afc46964e014a39d5cecad3 (diff) | |
| download | linux-e1008f19fa977d5b7c3912420e3b46b0a33e5316.tar.xz | |
RDMA/mlx5: Refactor raw packet QP rate limit handling
Refactor the raw packet QP modify path to extract rate limit
configuration into a qp_rl_parse() helper that parses user attributes,
and a qp_rl_prepare() helper that handles FW rate limit table
adjustments before the SQ modify itself.
Use qp_rl_commit() to commit changes to QP once FW call
succeeds, and qp_rl_rollback() to rollback changes done to
the FW rate limit table in the prepare stage, in case the
modify operation fails.
These helpers will be reused for extending rate limit support to
additional QP types in the following patch.
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-2-3d79439f8d08@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
