diff options
| author | Mark Bloch <[email protected]> | 2023-04-13 09:23:09 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2023-04-18 05:47:10 +0000 |
| commit | 3e358ea8614ddfbc59ca7a3f5dff5dde2b350b2c (patch) | |
| tree | 3ee5602ff9d31f57abe190718ab45d42749a8719 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | RDMA/rxe: Protect QP state with qp->state_lock (diff) | |
| download | kernel-3e358ea8614ddfbc59ca7a3f5dff5dde2b350b2c.tar.gz kernel-3e358ea8614ddfbc59ca7a3f5dff5dde2b350b2c.zip | |
RDMA/mlx5: Fix flow counter query via DEVX
Commit cited in "fixes" tag added bulk support for flow counters but it
didn't account that's also possible to query a counter using a non-base id
if the counter was allocated as bulk.
When a user performs a query, validate the flow counter id given in the
mailbox is inside the valid range taking bulk value into account.
Fixes: 208d70f562e5 ("IB/mlx5: Support flow counters offset for bulk counters")
Signed-off-by: Mark Bloch <[email protected]>
Reviewed-by: Maor Gottlieb <[email protected]>
Link: https://lore.kernel.org/r/79d7fbe291690128e44672418934256254d93115.1681377114.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
