aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs_cmd.c
diff options
context:
space:
mode:
authorNoa Osherovich <noaos@mellanox.com>2017-01-18 15:40:00 +0200
committerDoug Ledford <dledford@redhat.com>2017-02-14 11:41:13 -0500
commit9e1b161f3b8f14f2459fa20c26e41e40e049d90e (patch)
tree84b35d12ce3030e42e0e091dd3df6d5a81b0e21b /drivers/infiniband/core/uverbs_cmd.c
parentIB/uverbs: Enable WQ creation and modification with cvlan offload (diff)
downloadlinux-dev-9e1b161f3b8f14f2459fa20c26e41e40e049d90e.tar.xz
linux-dev-9e1b161f3b8f14f2459fa20c26e41e40e049d90e.zip
IB/uverbs: Enable QP creation with cvlan offload
Enable user applications to create a QP with cvlan stripping offload. Signed-off-by: Noa Osherovich <noaos@mellanox.com> Reviewed-by: Maor Gottlieb <maorg@mellanox.com> Reviewed-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_cmd.c')
-rw-r--r--drivers/infiniband/core/uverbs_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c
index 0eb204380bff..b4b395a054ac 100644
--- a/drivers/infiniband/core/uverbs_cmd.c
+++ b/drivers/infiniband/core/uverbs_cmd.c
@@ -1891,7 +1891,8 @@ static int create_qp(struct ib_uverbs_file *file,
IB_QP_CREATE_CROSS_CHANNEL |
IB_QP_CREATE_MANAGED_SEND |
IB_QP_CREATE_MANAGED_RECV |
- IB_QP_CREATE_SCATTER_FCS)) {
+ IB_QP_CREATE_SCATTER_FCS |
+ IB_QP_CREATE_CVLAN_STRIPPING)) {
ret = -EINVAL;
goto err_put;
}