From patchwork Fri Dec 8 02:00:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 121114 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp86004qgn; Thu, 7 Dec 2017 18:02:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMY86Pfp3xRhQW+aSHSzCrdWXTz0foAWRQB7xHyRuCdjx4xgxkMtCmMo12yRCTkg/AiwksPq X-Received: by 10.55.130.194 with SMTP id e185mr31859078qkd.357.1512698528684; Thu, 07 Dec 2017 18:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512698528; cv=none; d=google.com; s=arc-20160816; b=G2Q+F1YTPJlt82Z908o5xkIMKwMUuIhqqIu6QbL3uRtoeGi7gaBGiO4h9LWrjWzZwM hyQ9XpzexrJTfHnNFu8S0a4/9K9f/VOV6VABxfjICWanEFa3ODpiW6IlnoCSx6a8JHdj vHa4zaJbMosRhpcXiX5+XrywNFYJV7v66U/IH7wE+XmKaWG4OamibKmjeKxKX4IetGfD m4vP4IcYcH/unRk78gZl92DOAybopjf8SB20Jap69P5sVFChQzk+Xuyt313ui/GihLbd XiJZSS1Y4M5llxZM11wLpJvKnH/hQm1nfOvoDl4pYN8tclMmLTCO3002YTjz3QAEEk96 2g8Q== 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 :arc-authentication-results; bh=8PzMA3nwaJ/L0HveTAjqgXJh4Q7AeppruEEQQcSPhJA=; b=yuXSL9mCEbGM/xYJtn0Aq5PpK9hRHkXz45v7moZHIotP/6Qkr0bpWTMLrF2rTJ1Yff yRdSnWRc360ptoH7D8NSZPN8ly9ZUJ8D6R/GDhUvpVvmI5bUhtd4dMY8woDOORG8kX3u XRb7Bu/sYwpBzFJ4ky6KEbj/h91E06G0ZwIdiRamHk+KFH+p/Vri7P8hYdbhqJv9L+41 Htas09PG33RB4L/BrJU67tM4QJLW+loMpd+AmJ1w1x6uP0od/muOnG8jkHWY8ighmSm5 Yq2Bi3kh9wOMGIqruQBUcVx7hC+V3C7XCiPmHJWxFaSmGxKFgoATBWx+1Jvx7N5o5fF5 VQ9g== 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 q7si2688765qtg.60.2017.12.07.18.02.08; Thu, 07 Dec 2017 18:02:08 -0800 (PST) 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 51B0860993; Fri, 8 Dec 2017 02:02:08 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED 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 EF34A60961; Fri, 8 Dec 2017 02:00:49 +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 1B6B360957; Fri, 8 Dec 2017 02:00:44 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id AE7E160982 for ; Fri, 8 Dec 2017 02:00:14 +0000 (UTC) Received: from mxback10j.mail.yandex.net (mxback10j.mail.yandex.net [IPv6:2a02:6b8:0:1619::113]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 2C71B2A222B2 for ; Fri, 8 Dec 2017 05:00:13 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback10j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JXgsHXEZFZ-0DfWRNLe; Fri, 08 Dec 2017 05:00:13 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id cfFr0dfSFf-0CPWNYgN; Fri, 08 Dec 2017 05:00:12 +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: Fri, 8 Dec 2017 05:00:12 +0300 Message-Id: <1512698412-27641-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512698412-27641-1-git-send-email-odpbot@yandex.ru> References: <1512698412-27641-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 328 Subject: [lng-odp] [PATCH API-NEXT v1 1/1] api: ipsec: require IPv4 or IPv6 flag to be 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 Require IPv4/IPv6 flag to be set for IPsec processing. Hardware usually requires this, so require application to set flag that it knows. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 328 (lumag:ipsec-ipv) ** https://github.com/Linaro/odp/pull/328 ** Patch: https://github.com/Linaro/odp/pull/328.patch ** Base sha: 0980001e33b4190133d478a0aa2e718fd1e3c164 ** Merge commit sha: 46c4acd7700a9c0d1328b3e05c8c6076c1010c4c **/ include/odp/api/spec/ipsec.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index d57815ed2..28a28d741 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1207,6 +1207,7 @@ typedef struct odp_ipsec_status_t { * * Each input packet must have a valid value for these metadata (other metadata * is ignored): + * - IPv4 or IPv6 flag: Set packet flag according to packet contents. * - L3 offset: Offset to the first byte of the (outmost) IP header * - L4 offset: When udp_encap is enabled, offset to the first byte of the * encapsulating UDP header @@ -1231,6 +1232,7 @@ typedef struct odp_ipsec_status_t { * Each successfully transformed packet has a valid value for these metadata * regardless of the inner packet parse configuration * (odp_ipsec_inbound_config_t): + * - IPv4 or IPv6 flag: Set packet flag according to packet contents. * - L3 offset: Offset to the first byte of the (outmost) IP header * - pktio: For inline IPSEC processed packets, original packet input * interface @@ -1277,6 +1279,7 @@ int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in, * * Each input packet must have a valid value for these metadata (other metadata * is ignored): + * - IPv4 or IPv6 flag: Set packet flag according to packet contents. * - L3 offset: Offset to the first byte of the (outmost) IP header * - L4 offset: Offset to the L4 header if L4 checksum offload is requested * @@ -1294,6 +1297,7 @@ int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in, * and content of packet data before the IP header is undefined. * * Each successfully transformed packet has a valid value for these metadata: + * - IPv4 or IPv6 flag: Set packet flag according to packet contents. * - L3 offset: Offset to the first byte of the (outmost) IP header * * @param pkt_in Packets to be processed