Skip to content

Commit

Permalink
RDMA/uverbs: Add structure size info to write commands
Browse files Browse the repository at this point in the history
We need the structure sizes to compute the location of the udata in the
core code. Annotate the sizes into the new macro language.

This is generated largely by script and checked by comparing against the
similar list in rdma-core.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
  • Loading branch information
Jason Gunthorpe committed Nov 26, 2018
1 parent 15a1b4b commit 669dac1
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 109 deletions.
4 changes: 4 additions & 0 deletions drivers/infiniband/core/rdma_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ struct uverbs_api_write_method {
struct ib_udata *ucore, struct ib_udata *uhw);
u8 disabled:1;
u8 is_ex:1;
u8 has_udata:1;
u8 has_resp:1;
u8 req_size;
u8 resp_size;
};

struct uverbs_api_attr {
Expand Down
Loading

0 comments on commit 669dac1

Please sign in to comment.