diff options
author | Noa Osherovich <noaos@mellanox.com> | 2017-01-18 15:40:00 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-02-14 11:41:13 -0500 |
commit | 9e1b161f3b8f14f2459fa20c26e41e40e049d90e (patch) | |
tree | 84b35d12ce3030e42e0e091dd3df6d5a81b0e21b /drivers/infiniband/core | |
parent | af1cb95d2e34133e0cf7f48d6045da888414b867 (diff) | |
download | op-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.c | 3 |
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; } |