OSDN Git Service

IB/uverbs: Enable compact representation of uverbs_attr_spec
authorMatan Barak <matanb@mellanox.com>
Mon, 19 Mar 2018 13:02:35 +0000 (15:02 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Mar 2018 20:45:17 +0000 (14:45 -0600)
commit1f07e08fab2e895c68d4eb5a519c36be75a12078
tree677978d240779d885343be695a9b4663a4af954c
parent0ede73bc012c98fba244b33efbc42e48dd23ee9a
IB/uverbs: Enable compact representation of uverbs_attr_spec

Downstream patches extend uverbs_attr_spec with new fields.
In order to save space, we move the type and flags fields to
the various attribute flavors contained in the union.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_ioctl.c
include/rdma/uverbs_ioctl.h