OSDN Git Service

IB/mlx5: Let read user wqe also from SRQ buffer
authorMoni Shoua <monis@mellanox.com>
Tue, 22 Jan 2019 06:48:46 +0000 (08:48 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Feb 2019 21:34:07 +0000 (14:34 -0700)
commitfbeb4075c67080869bed6ed973b2e54514e750a2
treeff87a83c7dfe1273d70663a39d83cc217fb5f072
parent29917f4750a0318d682c4b34e8bee2b877530d6e
IB/mlx5: Let read user wqe also from SRQ buffer

Reading a WQE from SRQ is almost identical to reading from regular RQ.
The differences are the size of the queue, the size of a WQE and buffer
location.

Make necessary changes to mlx5_ib_read_user_wqe() to let it read a WQE
from a SRQ or RQ by caller choice.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/odp.c
drivers/infiniband/hw/mlx5/qp.c