IB/mlx5: Introduce async DEVX obj query API
authorYishai Hadas <yishaih@mellanox.com>
Tue, 22 Jan 2019 06:29:57 +0000 (08:29 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 29 Jan 2019 20:33:00 +0000 (13:33 -0700)
commita124edba26270697540f1058bfcd490c1c65b116
tree9ef7af21b260e6b0b8fbeb46ca203cbabdbe1f9c
parent6bf8f22aea0ddd93af822aed8afeeee4acdf7694
IB/mlx5: Introduce async DEVX obj query API

Introduce async DEVX obj query API to get the command response back to
user space once it's ready without blocking when calling the firmware.

The event's data includes a header with some meta data then the firmware
output command data.

The header includes:
- The input 'wr_id' to let application recognizing the response.

The input FD attribute is used to have the event data ready on.
Downstream patches from this series will implement the file ops to let
application read it.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c
include/uapi/rdma/mlx5_user_ioctl_cmds.h
include/uapi/rdma/mlx5_user_ioctl_verbs.h