From patchwork Wed Feb 21 17:59:57 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: 129118 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp896171ljc; Wed, 21 Feb 2018 10:02:31 -0800 (PST) X-Google-Smtp-Source: AH8x227jWKp9dUk3TeZniAn3HQsfmeWTP+s2ukFm98v9Qx6d/skj6YPI6Y0ux8rv4cNzeUpZyUCg X-Received: by 10.55.74.2 with SMTP id x2mr6199323qka.314.1519236150977; Wed, 21 Feb 2018 10:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519236150; cv=none; d=google.com; s=arc-20160816; b=p5wp7HAvPOQyWxurJwrql/OuN064fZvWr8s8w088LwRIwNUA9HTrNtnLEtpWia6U8d FpdTXvNVgSmiryZRnodKe7belStUSLl5ppX2jUvkA3fTU5/g25ngIXl3kfaxjWdLe3DU U241ov7FOfkNr9urOZlglAui8WXzRavoAzab4HG8JcmguKb6C16nsVFL5mwDIGX7Ufbp /IQbzKhhF8i6EOEkiPHQoRQbPL6EyygVmnP5ChW+xjHubwrbWLHwiGm7U0sAwNN7tN+Q xE4G9jUYkr7kDmCrgQZ5Wk8LYpk86v4rt3Yga8RTaBwXtG0ksNz3gXgbZdDYDqyVVGmd hsVw== 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=5t1jUFjElEQr5yb2VlSl9fjTPi6cg3yHQNH913RWhww=; b=YhP4J+rLPY8BDsqeyh3kFa3SMh2ugv06iWRHH71o7W4uI61ypHiOow/jF80bWlRF2e rQbMiydCltJ/n9UsHHR/U3kOIuGeerZnTV+o2Na0R1RcqENiic9yYwyi66dc1hfc20mr 2DJTYGWIEWc9LhpjOKr2LF3t5XsuYyXNw+Jkv8HATNUfPti5H7s1IoffTrRfs5pyQmbZ xJjVH4CztPvoBY7kWJpb0QTgVR7ZTE9e/NF42snKQfAhYFalpgNOKeWf3zd/LF1NwHjY JaTaXaGKeCzLgo/Om2RdpAjRCunuSojMw1MqM9EwuHD+GFR8IqcPUZx40ISOlq36l42Y dPgg== 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 i66si982442qkb.459.2018.02.21.10.02.30; Wed, 21 Feb 2018 10:02:30 -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 303BC617E2; Wed, 21 Feb 2018 18:02:30 +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 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 A7E946107F; Wed, 21 Feb 2018 18:01:37 +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 3D5C260B04; Wed, 21 Feb 2018 18:01:32 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id E36606090F for ; Wed, 21 Feb 2018 18:00:43 +0000 (UTC) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 5D8EE1242FB7 for ; Wed, 21 Feb 2018 21:00:42 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 13MY6cOuRK-0g9qDk4A; Wed, 21 Feb 2018 21:00:42 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pTqHAnOINC-0Z946vwf; Wed, 21 Feb 2018 21:00:35 +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: Wed, 21 Feb 2018 20:59:57 +0300 Message-Id: <1519236011-14987-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519236011-14987-1-git-send-email-odpbot@yandex.ru> References: <1519236011-14987-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 494 Subject: [lng-odp] [PATCH API-NEXT v2 1/15] api: don't create special case for the tunnel-dummy packets 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 Do not create special case for IPsec packet contents. It is easier to always use odp_packet_len() - odp_packet_l3_offset() + tfc_pad_len as the transformation length, rather than hardcoding special case. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 494 (lumag:ipsec-tfc-imp) ** https://github.com/Linaro/odp/pull/494 ** Patch: https://github.com/Linaro/odp/pull/494.patch ** Base sha: ea2afab619ae74108a03798bc358fdfcd29fdd88 ** Merge commit sha: 0b6ae2680a00027c3958ebcafbbcf92642a68f5e **/ include/odp/api/spec/ipsec.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 2d1c4d9ba..474055c0c 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1346,9 +1346,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. Use outbound * operation parameters to specify the amount of TFC padding appended to * the packet during IPSEC transformation. Options can be used also to create - * TFC dummy packets. Packet data content is ignored in tunnel mode TFC dummy - * packet creation as tfc_pad_len option defines solely the packet length. - * In all other cases, payload length for the IPSEC transformation is specified + * TFC dummy packets. Payload length for the IPSEC transformation is specified * by odp_packet_len() minus odp_packet_l3_offset() plus tfc_pad_len option. * * Each successfully transformed packet has a valid value for these metadata: