linux/drivers/infiniband/hw/ocrdma
Jason Gunthorpe bad4e98893 RDMA: Update the query_device() op
This op hasn't followed the normal pattern of passing NULL for udata when
invoked by the kernel. Instead the kernel caller creates a dummy ib_udata
on the stack and passes that in. It does not seem to currently be a bug,
but this flow should be modernized to use the new API flow and in the
process accept NULL as well.

Only mlx4 uses an input request structure, have every other driver call
ib_is_udata_in_empty() to enforce the lack of request structs.

Use ib_respond_empty_udata() in every driver that does not use a response
struct.

Ensure a check for NULL udata before calling ib_respond_udata() in
bnxt_re, efa, and mlx5.

Make mlx4 safe to be called with NULL.

Link: https://patch.msgid.link/r/2-v1-922fa8e828ba+f7-ib_udata_stack_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2026-06-03 15:12:43 -03:00
..
Kconfig ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs 2026-03-29 11:21:22 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ocrdma_ah.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
ocrdma_ah.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
ocrdma_hw.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ocrdma_hw.h RDMA: Clean destroy CQ in drivers do not return errors 2019-06-11 16:17:10 -04:00
ocrdma_main.c RDMA: Clarify that CQ resize is a user‑space verb 2026-03-30 13:47:44 -04:00
ocrdma_sli.h RDMA/ocrdma: Fix spelling mistake in variable name 2019-11-14 11:51:42 -04:00
ocrdma_stats.c RDMA/ocrdma: Don't inline statistics functions 2024-07-11 13:25:11 +03:00
ocrdma_stats.h RDMA/ocrdma: Make ocrdma_pma_counters() return void 2019-11-06 15:38:57 -04:00
ocrdma_verbs.c RDMA: Update the query_device() op 2026-06-03 15:12:43 -03:00
ocrdma_verbs.h RDMA: Properly propagate the number of CQEs as unsigned int 2026-03-30 13:47:44 -04:00
ocrdma.h RDMA/ocrdma: kzalloc_objs to kzalloc_flex 2026-03-10 06:22:59 -04:00