OSDN Git Service

RDMA/core: Added missing WR and WC opcodes
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 3 Sep 2020 22:40:34 +0000 (17:40 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Sep 2020 13:24:54 +0000 (10:24 -0300)
commitb60b9c0274007fe68439cd9cefdabbd7fb8a2ce6
treebc948a7ecccb3cd895d14ba9645da86c20cf21cb
parent1d4299ed774205cfe4218a351834a137853fa9c2
RDMA/core: Added missing WR and WC opcodes

Add work completion opcodes to a new ib_uverbs_wc_opcode enum in
ib_user_verbs.h. This plays the same role as ib_uverbs_wr_opcode
documenting the opcodes in the user space API.

Assigned the IB_WC_XXX opcodes in ib_verbs.h to the IB_UVERBS_WC_XXX
where they are defined. This follows the same pattern as the IB_WR_XXX
opcodes. This fixes an incorrect value for LSO that had crept in but
is not currently being used.

Added a missing IB_WR_BIND_MW opcode in ib_verbs.h.

Link: https://lore.kernel.org/r/20200903224039.437391-2-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/rdma/ib_verbs.h
include/uapi/rdma/ib_user_verbs.h