]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Add legacy driver's user-data
authorMatan Barak <matanb@mellanox.com>
Thu, 3 Aug 2017 13:07:04 +0000 (16:07 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 31 Aug 2017 12:35:13 +0000 (08:35 -0400)
commit669ee2f30b64cf807292e95a6dee8085555f441c
tree8424166e2e28c3f99666db14f7afd20e290b1fa1
parentc8d0fab8d7902f7eaefbb95f163ee551996f8f4d
IB/core: Add legacy driver's user-data

In this phase, we don't want to change all the drivers to use
flexible driver's specific attributes. Therefore, we add two default
attributes: UHW_IN and UHW_OUT. These attributes are optional in some
methods and they encode the driver specific command data. We add
a function that extract this data and creates the legacy udata over
it.

Driver's data should start from UVERBS_UDATA_DRIVER_DATA_FLAG. This
turns on the first bit of the namespace, indicating this attribute
belongs to the driver's namespace.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_std_types.c
include/rdma/uverbs_ioctl.h
include/uapi/rdma/ib_user_ioctl_verbs.h