From patchwork Tue Dec 16 18:31:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42347 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 62D7D2456A for ; Tue, 16 Dec 2014 18:31:56 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gd6sf9071180lab.4 for ; Tue, 16 Dec 2014 10:31:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=y6rvBVAYiEwUbz9o5vXe9QepoAGCuEEEvXLbvltweW8=; b=OIDPzmW2rH8k9kg7jsH0/Whhd10nBE1qUsSDEHX0SY+WXOEb3SUE5kNBX9fqxAq5G0 HXTvAk204N7jUadOOHp2LrV2TU3FeO3CgwB69+ifnVOuOvbERvsVNDkd7thQBDeUPKKI ZQziIvpLsY37m+CD4zmDhkIaubMtHbs/5qWpX9cf2rh0lr2L+tZzj0IFJWpBFYzCg3ko go5WUojaoF8VoRiTL1ldUDXu4iSS/YrAtztaLhC+Xgem1Wm1/ixJ7jDQZLHGVM9TFsm1 qYE79x4PIOV4ej0G8UuGOfVDHyy22i3F4BZgIWsxRFrniAS+8rg8VwEO3yM7JmUbbaxp 9Nlg== X-Gm-Message-State: ALoCoQkfGPTU+U8mc5Oo4Twl8S/3fL1L3GNCm9AgjYfYsuwlTBiey86FV46+JYSAZ+9ng5FAmjSo X-Received: by 10.152.37.193 with SMTP id a1mr1564160lak.3.1418754715149; Tue, 16 Dec 2014 10:31:55 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.39 with SMTP id j7ls967966laf.92.gmail; Tue, 16 Dec 2014 10:31:54 -0800 (PST) X-Received: by 10.112.91.43 with SMTP id cb11mr36676267lbb.63.1418754714904; Tue, 16 Dec 2014 10:31:54 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id e8si1576283lam.60.2014.12.16.10.31.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 10:31:54 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so11665786lab.24 for ; Tue, 16 Dec 2014 10:31:54 -0800 (PST) X-Received: by 10.152.27.8 with SMTP id p8mr20303538lag.69.1418754714716; Tue, 16 Dec 2014 10:31:54 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1124541lbb; Tue, 16 Dec 2014 10:31:53 -0800 (PST) X-Received: by 10.224.164.195 with SMTP id f3mr17641662qay.55.1418754713171; Tue, 16 Dec 2014 10:31:53 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id i65si1836569qgd.0.2014.12.16.10.31.51 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Dec 2014 10:31:53 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0wuT-0002tW-SC; Tue, 16 Dec 2014 18:31:49 +0000 Received: from mail-ob0-f170.google.com ([209.85.214.170]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0wuN-0002rR-IG for lng-odp@lists.linaro.org; Tue, 16 Dec 2014 18:31:43 +0000 Received: by mail-ob0-f170.google.com with SMTP id wp18so24262312obc.1 for ; Tue, 16 Dec 2014 10:31:38 -0800 (PST) X-Received: by 10.182.165.69 with SMTP id yw5mr23474590obb.36.1418754698238; Tue, 16 Dec 2014 10:31:38 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id ip2sm636119oeb.0.2014.12.16.10.31.35 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 10:31:37 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 16 Dec 2014 12:31:31 -0600 Message-Id: <1418754691-32192-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Topics: patch Subject: [lng-odp] [PATCH] Disable packet offset adjustments on head push/pull as requested by Petri X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Bill Fischofer Signed-off-by: ... --- Note: This patch pre-reqs https://patches.linaro.org/42346/ platform/linux-generic/include/odp_packet_internal.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index 515c127..068f969 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -198,13 +198,15 @@ static inline void *packet_map(odp_packet_hdr_t *pkt_hdr, pkt_hdr->headroom + pkt_hdr->frame_len); } +#define ENABLE_OFFSET_UPDATES 0 + #define pull_offset(x, len) do { \ - if (x != ODP_PACKET_OFFSET_INVALID) \ + if (ENABLE_OFFSET_UPDATES && x != ODP_PACKET_OFFSET_INVALID) \ x = x < len ? ODP_PACKET_OFFSET_INVALID : x - len; \ } while (0) #define push_offset(x, len) do { \ - if (x != ODP_PACKET_OFFSET_INVALID) \ + if (ENABLE_OFFSET_UPDATES && x != ODP_PACKET_OFFSET_INVALID) \ x += len; \ } while (0)