diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2020-02-19 22:05:17 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2020-03-05 15:18:09 +0300 |
commit | 1326034b3ce7073e3ed74bd0f4d24afee96a9e07 (patch) | |
tree | 48c6b74e86fe3eaaaea4c17e355ab88a607ab79c /include/uapi/rdma/mlx5_user_ioctl_verbs.h | |
parent | 339ffae598ed74a0220a92c9b8d1cecb2e9a0dc8 (diff) | |
download | linux-1326034b3ce7073e3ed74bd0f4d24afee96a9e07.tar.xz |
net/mlx5: Expose raw packet pacing APIs
Expose raw packet pacing APIs to be used by DEVX based applications.
The existing code was refactored to have a single flow with the new raw
APIs.
The new raw APIs considered the input of 'pp_rate_limit_context', uid,
'dedicated', upon looking for an existing entry.
This raw mode enables future device specification data in the raw
context without changing the existing logic and code.
The ability to ask for a dedicated entry gives control for application
to allocate entries according to its needs.
A dedicated entry may not be used by some other process and it also
enables the process spreading its resources to some different entries
for use different hardware resources as part of enforcing the rate.
The counter per entry was changed to be u64 to prevent any option to
overflow.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/mlx5_user_ioctl_verbs.h')
0 files changed, 0 insertions, 0 deletions