From patchwork Tue Jan 6 22:12:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42800 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 32A002055F for ; Tue, 6 Jan 2015 22:13:20 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf173338wib.2 for ; Tue, 06 Jan 2015 14:13:19 -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=5mb6qkv9ugqxMZ4BEdlPvkCA6hn1BRUrKuPMG+WR7LQ=; b=Kij8xhPYnP+bSvRxXLWmQu+WSN0X6EYJDIZsQz1Drv6vbXDukSY99zw33V+ouP0aPa wCvROVriPH0D4JudoHWgJ0bDuN+jkKyaqYHKPpd6uKdyxd2b4WT3R5XfiiIL7TTfezrK 2N7b3n4QsSc/xyyg5LjITlQBpWqxSsVnaFHLxeXkZewixVNpAihQ/m6hBnyio67XU9BC UCwwuuf2P3WGhHVJLVv6MPBc6tghsX7gmGgh9TB6c3Q7NCDGNcZgbF3/n5g1w+60iRGh 66Cmesftq6a2gKdJ0ar0zdUVpVxo1fyiZ/v5UURc31aD1wRWs/Kl6qk2/kcRSBRFD2/z Zk2A== X-Gm-Message-State: ALoCoQmb4kdBIlYtX2KLE9fruZ9z1FWXZYbfAAjxP3HuOcdVkeTZNlyp302FgR8KCCxFsPc3LAme X-Received: by 10.112.219.199 with SMTP id pq7mr602691lbc.9.1420582399250; Tue, 06 Jan 2015 14:13:19 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.232 with SMTP id m8ls94540laa.45.gmail; Tue, 06 Jan 2015 14:13:19 -0800 (PST) X-Received: by 10.112.52.229 with SMTP id w5mr90358051lbo.52.1420582399099; Tue, 06 Jan 2015 14:13:19 -0800 (PST) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id kv10si67802486lac.131.2015.01.06.14.13.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Jan 2015 14:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id z12so135956lbi.3 for ; Tue, 06 Jan 2015 14:13:18 -0800 (PST) X-Received: by 10.112.89.232 with SMTP id br8mr64324357lbb.69.1420582398639; Tue, 06 Jan 2015 14:13:18 -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.9.200 with SMTP id c8csp1301234lbb; Tue, 6 Jan 2015 14:13:17 -0800 (PST) X-Received: by 10.224.89.2 with SMTP id c2mr81225599qam.75.1420582397292; Tue, 06 Jan 2015 14:13:17 -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 u10si36778919qcd.1.2015.01.06.14.13.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 06 Jan 2015 14:13:17 -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 1Y8cNF-0004UT-Rc; Tue, 06 Jan 2015 22:13:13 +0000 Received: from mail-ob0-f178.google.com ([209.85.214.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y8cN9-0004UL-LD for lng-odp@lists.linaro.org; Tue, 06 Jan 2015 22:13:07 +0000 Received: by mail-ob0-f178.google.com with SMTP id gq1so394996obb.9 for ; Tue, 06 Jan 2015 14:13:02 -0800 (PST) X-Received: by 10.182.71.73 with SMTP id s9mr59756185obu.15.1420582382229; Tue, 06 Jan 2015 14:13:02 -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 s196sm31838135oie.24.2015.01.06.14.13.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Jan 2015 14:13:01 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 6 Jan 2015 16:12:56 -0600 Message-Id: <1420582376-30228-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: packets: bugfix: set l2_offset in _odp_packet_parse() 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.217.172 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 --- platform/linux-generic/odp_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index eb0767a..257abec 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -778,7 +778,7 @@ int _odp_packet_parse(odp_packet_t pkt) pkt_hdr->error_flags.all = 0; pkt_hdr->input_flags.all = 0; pkt_hdr->output_flags.all = 0; - pkt_hdr->l2_offset = ODP_PACKET_OFFSET_INVALID; + pkt_hdr->l2_offset = 0; pkt_hdr->l3_offset = ODP_PACKET_OFFSET_INVALID; pkt_hdr->l4_offset = ODP_PACKET_OFFSET_INVALID; pkt_hdr->payload_offset = ODP_PACKET_OFFSET_INVALID;