]> git.baikalelectronics.ru Git - kernel.git/commit
IB/uverbs: Enable QP creation with a given source QP number
authorYishai Hadas <yishaih@mellanox.com>
Thu, 8 Jun 2017 13:15:07 +0000 (16:15 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:40:46 +0000 (10:40 -0400)
commita82d750de7a9f7d9c979070b82b5805ed1e0c4c9
tree32135e8360768f5a8d4b9e51b25e1a6af1ca23a1
parent8207fc22d04f6ae2cc741bdfb14047763f47f886
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 <yishaih@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c
include/uapi/rdma/ib_user_verbs.h