IB/uverbs: Enable QP creation with cvlan offload
authorNoa Osherovich <noaos@mellanox.com>
Wed, 18 Jan 2017 13:40:00 +0000 (15:40 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Feb 2017 16:41:13 +0000 (11:41 -0500)
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>
drivers/infiniband/core/uverbs_cmd.c

index 0eb204380bff9274b6977e21791a65e5da1c0c6e..b4b395a054acd9b3e668a147df26b1d699c521d5 100644 (file)
@@ -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;
        }