IB/uverbs: Enable QP creation with a given source QP number
authorYishai Hadas <[email protected]>
Thu, 8 Jun 2017 13:15:07 +0000 (16:15 +0300)
committerDoug Ledford <[email protected]>
Mon, 24 Jul 2017 14:40:46 +0000 (10:40 -0400)
commit2dee0e545894c23b1a2cc2019ac87dffb42e5984
tree32135e8360768f5a8d4b9e51b25e1a6af1ca23a1
parent02984cc7b3d62418bd72abacaf875c3a9eccdb66
IB/uverbs: Enable QP creation with a given source QP number

Enable QP creation with a given source QP number, the created QP will
use the source QPN as its wire QP number.

To create such a QP, root privileges (i.e. CAP_NET_RAW) are required
from the user application.

This comes as a pre-patch for downstream patches in this series to
allow user space applications to accelerate traffic which is typically
handled by IPoIB ULP.

Signed-off-by: Yishai Hadas <[email protected]>
Reviewed-by: Maor Gottlieb <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/core/uverbs_cmd.c
include/uapi/rdma/ib_user_verbs.h