From patchwork Wed Feb 21 16:59:54 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: 129103 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp836161ljc; Wed, 21 Feb 2018 09:00:30 -0800 (PST) X-Google-Smtp-Source: AH8x227r9qJHqPPhYlbLlR/ncKBDqPtUXdQM4065e9iKGLHMpTWJAQr7UbogTmQF9e+ovYNxy+ri X-Received: by 10.200.36.78 with SMTP id d14mr4044537qtd.329.1519232430033; Wed, 21 Feb 2018 09:00:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519232430; cv=none; d=google.com; s=arc-20160816; b=Kyhcm3cAGauzL7ZNs+DhvtSdM2YVF9JhYvOHlukzBpJw9SIoh/fgsQfJ7CTA11w81Y tPtB37H4prYnoduUY6mvY2pI4uYOVYUcg5biT4tMhFZuDLBmafN7mibZtG1Va4THiXNY 5qlBDVAeeRf5ebz5eTf5s9/xHIhE66wPAj6ClBjJ0lnrdDN/tc5RhAmKkeiNr5pv9CgV kc3OKfe2aeLJ0BmaW39u/eDohxYiHx+fmaCMAB39DICNAUua0F9CiUgVsq5ZUkldl2eF hZqMQNcTfjmI62jI+/2vF5xwROV+ktwmJu0AKesb3Ocda3TMDrV6p8pN6XW5NcjSepQ2 3omA== 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=SfHjcwgoWDbVHts1WMAPXa1w8hHmZ4hMExm4tKJIp9w=; b=DjibnFrzsppfm2nuxj4wO/DQhZz77i9uI4RG84mkB1Md/xvBq70UobuGOWHGoFF8jm xFN69Vs3hMTSdEbjb3MfAy1LyceWpmg1tqytsQb8wqDkM6YV5ggJ/+d7yduwO+1P3Vu7 ns83n8OkQkUdwiRZqq4S63sckmuD8FSttqPfoi7S8fvkN2TAv9K9rDQkbNIrajMmvt/k zF43Aj22PhVa6OibvrIMqGj4xiJW2zhh3htohgmWW2MBzL6A9ZiRjIUVbECpqAG99vX4 kzUCUtLg1TAwJTHL4PLLoow5ZXcsfPD+0nnKTYbWIjpwQXtyRpQTRFW95dOHKXyUyXb0 y4Gg== 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 t129si2392336qkd.110.2018.02.21.09.00.28; Wed, 21 Feb 2018 09:00:29 -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 B02EF60744; Wed, 21 Feb 2018 17:00:28 +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_H2 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 20CBF617AC; Wed, 21 Feb 2018 17:00:20 +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 3F2EA617A3; Wed, 21 Feb 2018 17:00:15 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id CAAA661777 for ; Wed, 21 Feb 2018 17:00:13 +0000 (UTC) Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 09FDE5D83BB9 for ; Wed, 21 Feb 2018 20:00:12 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id sHGjxQ8hef-0BkKlXcH; Wed, 21 Feb 2018 20:00:12 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id yTStk9eEsG-0Bue9NjE; Wed, 21 Feb 2018 20:00:11 +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 19:59:54 +0300 Message-Id: <1519232408-28445-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519232408-28445-1-git-send-email-odpbot@yandex.ru> References: <1519232408-28445-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 494 Subject: [lng-odp] [PATCH API-NEXT v1 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: 7bc900650676584bfb99c8a92c3d8812b458f172 **/ 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: