Skip to content

IB/core: extended query device caps cleanup for v3.19

Yann Droneaud linux-api linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4IB/uverbs: ex_query_device: fail if output buffer size does not matchdrivers/infiniband/core/uverbs_cmd.c+12 -12 replies
2/4IB/core: ib_copy_to_udata(): don't silently truncate responseinclude/rdma/ib_verbs.h+1 -40 replies
3/4IB/uverbs: ex_query_device: check request's comp_maskdrivers/infiniband/core/uverbs_cmd.c+6 -011 replies
4/4IB/uverbs: ex_query_device: no need to clear the whole structuredrivers/infiniband/core/uverbs_cmd.c+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] IB/core: extended query device caps cleanup for v3.19

Hi,

Following discussions in thread "[PATCH v3 06/17] IB/core: Add support for extended query device caps" [1], I'm proposing the following patchset to implement a different behavior to handle the request parameters in ib_uverbs_ex_query_device() in order to restore the current behavior of ib_copy_to_udata().

The behavior is different from the initial one but I feel more confident it would allow a better maintainability. Additionally, I believe it's looking more like the behavior already implemented by other InfiniBand/RDMA kernel <-> userspace interfaces.

[1] http://mid.gmane.org/[email protected]

Yann Droneaud (4):
IB/uverbs: ex_query_device: fail if output buffer size does not match IB/core: ib_copy_to_udata(): don't silently truncate response IB/uverbs: ex_query_device: check request's comp_mask IB/uverbs: ex_query_device: no need to clear the whole structure

 drivers/infiniband/core/uverbs_cmd.c | 24 ++++++++++++++++++++++--
 include/rdma/ib_verbs.h              |  5 +----
 2 files changed, 23 insertions(+), 6 deletions(-)
Signature · 6 lines
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html