summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
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
parentaf1cb95d2e34133e0cf7f48d6045da888414b867 (diff)
downloadop-kernel-dev-9e1b161f3b8f14f2459fa20c26e41e40e049d90e.zip
op-kernel-dev-9e1b161f3b8f14f2459fa20c26e41e40e049d90e.tar.gz
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')
-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 0eb2043..b4b395a 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;
}
OpenPOWER on IntegriCloud