IB/mlx5: Add function to read WQE from user-space
authorHaggai Eran <haggaie@mellanox.com>
Thu, 11 Dec 2014 15:04:14 +0000 (17:04 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:13:35 +0000 (18:13 -0800)
commitc1395a2a8c01e8a919e47d64eb3d23d00e824b8b
tree14c4baa698685dc3e59412a37e9774be1dc8fe09
parentc5d76f130b286682b64c659eaf6af701e3d79a7b
IB/mlx5: Add function to read WQE from user-space

Add a helper function mlx5_ib_read_user_wqe to read information from
user-space owned work queues.  The function will be used in a later
patch by the page-fault handling code in mlx5_ib.

Signed-off-by: Haggai Eran <haggaie@mellanox.com>
[ Add stub for ib_umem_copy_from() for CONFIG_INFINIBAND_USER_MEM=n
  - Roland ]

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
include/linux/mlx5/qp.h
include/rdma/ib_umem.h