On Mon, Nov 06, 2017 at 11:48:53AM -0800, Bryan Tan wrote: > Add the required functions needed to support SRQs. Currently, kernel > clients are not supported. SRQs will only be available in userspace. > > Reviewed-by: Adit Ranadive <aditr@xxxxxxxxxx> > Reviewed-by: Aditya Sarwade <asarwade@xxxxxxxxxx> > Reviewed-by: Jorgen Hansen <jhansen@xxxxxxxxxx> > Reviewed-by: Nitish Bhat <bnitish@xxxxxxxxxx> > Signed-off-by: Bryan Tan <bryantan@xxxxxxxxxx> > --- > v0 -> v1 Changelog: > - Change SRQ functions to be more consistent with the QP functions > - Move check for kernel clients to before resource initialization > - Use refcount_t instead of atomic_t > - Change allocation from (void *) to (struct pvrdma_srq *) > - Remove unnecessary initialization of srq_tbl to NULL > - Check for srq_tbl in SRQ event handler > - Only register SRQ functions with IB/core when the underlying > device has SRQ capabilities. > --- > drivers/infiniband/hw/vmw_pvrdma/Makefile | 2 +- > drivers/infiniband/hw/vmw_pvrdma/pvrdma.h | 25 ++ > drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h | 54 ++++ > drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 59 +++- > drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 55 +++- > drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 319 ++++++++++++++++++++++ > drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c | 3 + > drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h | 18 ++ > include/uapi/rdma/vmw_pvrdma-abi.h | 2 + > 9 files changed, 523 insertions(+), 14 deletions(-) > create mode 100644 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c Reviewed-by: Yuval Shaia <yuval.shaia@xxxxxxxxxx> > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html