From patchwork Tue Sep 11 13:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 146451 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3612233ljw; Tue, 11 Sep 2018 06:01:03 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda4Rit/DiKvQ3oUbuhfkYbcWt+1BOnolB7+ICu7pZ4e2ycj+O4GUOvLGOtR2Hv1QMnVjWD/ X-Received: by 2002:a37:c04f:: with SMTP id o76-v6mr18833478qki.315.1536670862840; Tue, 11 Sep 2018 06:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536670862; cv=none; d=google.com; s=arc-20160816; b=n+KVvn/e4VKc7QbPRXtCyVy4Djkob9N6qLVLTwxNOhU8s6aRRUegUNt8FqO4UkGlTR PzdoYeH0vl269VmUbJMaJbHuD33lwUdhclCzSL2rCX5HS2hTDwcR4x7Pv0oxRauWBV0v E3i11yRStcIKiIV4FgjpJ6XImwKalTjH0JmgrW+4K/r+gL+g1Zxy8MehmkacIDMCMhVI zasB+TqF/2sRhYggBXvveybqv6wKI287YuP6FbqSMGHObd4Mu4gvEGQC5A1y6hUX9mD6 LAqofFHoIZTrW9GqcgfDNLmLS/bCkF5AXBGY/AJZAo1MUpwbYXSFOXCBOpONlG4AsUya vZvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to; bh=E/PaGOmbLTzyFxmIRtL4NGzPtIM9QmGti9Z2IdMJnRs=; b=uHS4u1gnAo3LbtinJcu4x9Lxy6ykIeS6TwcpLwvkL3VDY+kEdg1vdM/exZjjQfQ+B6 mDlgBx85EX02Yb4MscKJ18/oWiRoay5bU6UCRQP7HEVl4hAAtzi8GqfmXGpwNV6WVz5I ToagxrGWZK28NO6WNwZgyKBlPf+3346YsxUSh7+yQnlPDNYjDmPcVxdPG5+iwD3T4S+o obE2TvVbkr411exh/ObyH9PPlxQJYOQN1kvz5cW483YODufM5pAiLMePz06DvIHHdx5T +qxwumAOan/4fwWmiiIb/8ljn81/XDXf3NUvMavhur6v7+tKUXkQz3CxeAoTke627IQ7 0OVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id b13-v6si4136224qvq.167.2018.09.11.06.01.01; Tue, 11 Sep 2018 06:01:01 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 6176A61C0B; Tue, 11 Sep 2018 13:01:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7C38561C08; Tue, 11 Sep 2018 13:00:27 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1DFDC61C05; Tue, 11 Sep 2018 13:00:19 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 03E0661C01 for ; Tue, 11 Sep 2018 13:00:13 +0000 (UTC) Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 08203186CA6 for ; Tue, 11 Sep 2018 16:00:10 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ybXNu7Cj2I-09TOuQIi; Tue, 11 Sep 2018 16:00:09 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id tWbeXWBxlV-08nS4f8v; Tue, 11 Sep 2018 16:00:09 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 11 Sep 2018 13:00:06 +0000 Message-Id: <1536670806-8209-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536670806-8209-1-git-send-email-odpbot@yandex.ru> References: <1536670806-8209-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 698 Subject: [lng-odp] [PATCH v1 1/1] linux-gen: ipsec: reject SA creation with ESN flag set X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov Fixes: https://bugs.linaro.org/show_bug.cgi?id=4002 --- /** Email created from pull request 698 (lumag:ipsec-no-esn) ** https://github.com/Linaro/odp/pull/698 ** Patch: https://github.com/Linaro/odp/pull/698.patch ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508 ** Merge commit sha: 3f3193c9ef13ae0a8bb5489142b1fd1b70f12a45 **/ platform/linux-generic/odp_ipsec_sad.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/linux-generic/odp_ipsec_sad.c b/platform/linux-generic/odp_ipsec_sad.c index 11f37fd8f..3a066bbf9 100644 --- a/platform/linux-generic/odp_ipsec_sad.c +++ b/platform/linux-generic/odp_ipsec_sad.c @@ -289,6 +289,10 @@ odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param) ipsec_sa->queue = param->dest_queue; ipsec_sa->mode = param->mode; ipsec_sa->flags = 0; + if (param->opt.esn) { + ODP_ERR("ESN is not supported!\n"); + return ODP_IPSEC_SA_INVALID; + } if (ODP_IPSEC_DIR_INBOUND == param->dir) { ipsec_sa->lookup_mode = param->inbound.lookup_mode; if (ODP_IPSEC_LOOKUP_DSTADDR_SPI == ipsec_sa->lookup_mode) {