OSDN Git Service

RDMA/core: Add UVERBS_METHOD_ASYNC_EVENT_ALLOC
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Jan 2020 18:05:32 +0000 (20:05 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 16 Jan 2020 19:55:45 +0000 (15:55 -0400)
commitd680e88e2013186e696665cbf2056fb32b781e41
tree128c1594619cc03189a6a67ca881afb5fa530aad
parentf862308579752c75f491d6d84948d1befc29514d
RDMA/core: Add UVERBS_METHOD_ASYNC_EVENT_ALLOC

Allow the async FD to be allocated separately from the context.

This is necessary to introduce the ioctl to create a context, as an ioctl
should only ever create a single uobject at a time.

If multiple async FDs are created then the first one is used to deliver
affiliated events from any ib_uevent_object, with all subsequent ones will
receive only unaffiliated events.

Link: https://lore.kernel.org/r/1578506740-22188-3-git-send-email-yishaih@mellanox.com
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/core/uverbs_std_types_async_fd.c
include/uapi/rdma/ib_user_ioctl_cmds.h