linux/drivers/infiniband/sw/rdmavt
Leon Romanovsky fbf03a0867 RDMA: Use ib_no_udata_io() in query_device callbacks
The query_device callbacks that neither accept driver-specific input nor
return a driver-specific response open-code the empty udata handling as
ib_is_udata_in_empty() on entry and ib_respond_empty_udata() on exit.

ib_no_udata_io() already combines both steps, so replace the entry check
with it and simply return 0 on success.

Unlike the create and destroy flows, query_device owns no uobject or HW
resource - the extended path fills a stack ib_device_attr that the core
discards on error - so clearing the empty response buffer on entry rather
than on exit is a mechanical change with no functional difference.

Link: https://patch.msgid.link/20260714-convert-to-noio-udata-v1-1-f1f6b6c7c988@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
2026-07-20 09:00:40 -04:00
..
ah.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ah.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
cq.c RDMA: Convert drivers using sizeof() to ib_respond_udata() 2026-05-18 04:58:42 -04:00
cq.h RDMA: Properly propagate the number of CQEs as unsigned int 2026-03-30 13:47:44 -04:00
Kconfig RDMA/core: remove use of dma_virt_ops 2020-11-17 15:22:07 -04:00
mad.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
mad.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
Makefile
mcast.c RDMA: Remove outdated comments referencing hfi1_destroy_qp() 2026-03-30 13:47:44 -04:00
mcast.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
mmap.c RDMA/rdmavt: Add driver mmap callback 2026-03-11 15:17:28 -04:00
mmap.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
mr.c RDMA/umem: Rename ib_umem_get() to ib_umem_get_va() 2026-05-29 20:19:57 -03:00
mr.h IB: Extend UVERBS_METHOD_REG_MR to get DMAH 2025-07-23 01:42:11 -04:00
pd.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
pd.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qp.c IB/rdmavt: use kzalloc() to allocate QPN-map pages 2026-07-14 08:26:03 -04:00
qp.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
rc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
srq.c IB/rdmavt: Don't abuse udata and ib_respond_udata() 2026-05-18 04:58:42 -04:00
srq.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_cq.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_mr.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_qp.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_rc.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_rvt.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_tx.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
vt.c RDMA: Use ib_no_udata_io() in query_device callbacks 2026-07-20 09:00:40 -04:00
vt.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00