linux-stable/include/linux/mlx5
Mark Bloch 4790e316f1 RDMA/mlx5: Fix flow counter query via DEVX
[ Upstream commit 3e358ea861 ]

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: 208d70f562 ("IB/mlx5: Support flow counters offset for bulk counters")
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Link: https://lore.kernel.org/r/79d7fbe291690128e44672418934256254d93115.1681377114.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:11:29 +09:00
..
cq.h
device.h net/mlx5: E-Switch, properly handle ingress tagged packets on VST 2022-12-28 11:38:49 -08:00
doorbell.h
driver.h net/mlx5: Expose SF firmware pages counter 2023-02-07 19:01:06 -08:00
eq.h
eswitch.h
fs.h net/mlx5: fs, add match on ranges API 2022-12-08 16:10:53 -08:00
fs_helpers.h net/mlx5: Remove unused functions 2022-09-27 12:50:27 -07:00
mlx5_ifc.h RDMA/mlx5: Fix flow counter query via DEVX 2023-05-11 23:11:29 +09:00
mlx5_ifc_fpga.h net/mlx5: Remove from FPGA IFC file not-needed definitions 2022-09-27 12:50:27 -07:00
mlx5_ifc_vdpa.h
mpfs.h
port.h
qp.h net/mlx5e: xsk: Use KSM for unaligned XSK 2022-09-30 07:55:46 -07:00
rsc_dump.h
transobj.h
vport.h net/mlx5: Add generic getters for other functions caps 2022-12-07 20:09:18 -08:00