diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-10 05:14:39 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-11 01:06:24 +0300 |
commit | 6a1f444fefeba392d1232b408aaf5902e33e0982 (patch) | |
tree | 7e1e771666a574797c890a2a9d2a29fa22c9c2ab /include/rdma/opa_port_info.h | |
parent | 4b3dd2bbf0818ccb23e7f2831f2ca4a86789cd1f (diff) | |
download | linux-6a1f444fefeba392d1232b408aaf5902e33e0982.tar.xz |
IB/uverbs: Remove the ib_uverbs_attr pointer from each attr
Memory in the bundle is valuable, do not waste it holding an 8 byte
pointer for the rare case of writing to a PTR_OUT. We can compute the
pointer by storing a small 1 byte array offset and the base address of the
uattr memory in the bundle private memory.
This also means we can access the kernel's copy of the ib_uverbs_attr, so
drop the copy of flags as well.
Since the uattr base should be private bundle information this also
de-inlines the already too big uverbs_copy_to inline and moves
create_udata into uverbs_ioctl.c so they can see the private struct
definition.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'include/rdma/opa_port_info.h')
0 files changed, 0 insertions, 0 deletions