aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/siw
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2020-10-30 11:03:05 -0300
committerJason Gunthorpe <jgg@nvidia.com>2020-11-02 15:32:06 -0400
commit5c4193669b6f20b990f99cb8e15cdea80f865ac1 (patch)
tree710227a9e742cbec22e2739d2a7bb4ed45df67e6 /drivers/infiniband/sw/siw
parentRDMA/siw: Fix typo of EAGAIN not -EAGAIN in siw_cm_work_handler() (diff)
downloadlinux-dev-5c4193669b6f20b990f99cb8e15cdea80f865ac1.tar.xz
linux-dev-5c4193669b6f20b990f99cb8e15cdea80f865ac1.zip
RDMA/rxe,siw: Restore uverbs_cmd_mask IB_USER_VERBS_CMD_POST_SEND
These two drivers open code the call to POST_SEND and do not use the rdma-core wrapper to do it, thus their usages was missed during the audit. Both drivers use this as a doorbell to signal the kernel to start DMA. Fixes: 628c02bf38aa ("RDMA: Remove uverbs cmds from drivers that don't use them") Link: https://lore.kernel.org/r/0-v1-4608c5610afa+fb-uverbs_cmd_post_send_fix_jgg@nvidia.com Reported-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/siw')
-rw-r--r--drivers/infiniband/sw/siw/siw_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/siw/siw_main.c b/drivers/infiniband/sw/siw/siw_main.c
index e49faefdee92..9cf596429dbf 100644
--- a/drivers/infiniband/sw/siw/siw_main.c
+++ b/drivers/infiniband/sw/siw/siw_main.c
@@ -347,6 +347,8 @@ static struct siw_device *siw_device_create(struct net_device *netdev)
addr);
}
+ base_dev->uverbs_cmd_mask |= BIT_ULL(IB_USER_VERBS_CMD_POST_SEND);
+
base_dev->node_type = RDMA_NODE_RNIC;
memcpy(base_dev->node_desc, SIW_NODE_DESC_COMMON,
sizeof(SIW_NODE_DESC_COMMON));