From patchwork Thu Feb 19 11:26:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 44811 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 B328321554 for ; Thu, 19 Feb 2015 11:30:49 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf5170405wib.2 for ; Thu, 19 Feb 2015 03:30:49 -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 :mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=pVm8xHT9cWTQ5EgHERzXObbRuUIRCq+tlCiOc+kDEhk=; b=LfRIvd9G8z2szXVJdT9C1Vr8kBC6icz6AmidmsYwJ6rlx9/JTyfayYRVSfEilIsN+W 3fSb00eVJqCLLRdufMByHbWE1kLNV6SPlpb69EsYx+614t9dp1Gk6rYknh6sMCbvVoWK PzC+GuL5pmFws0dzPnU4V0oJ2KbU1nyewQ8uadWlo5Dyyys1d2/oozE3QrJw6HkvA4Ik yUzLpXuApi3l2PRjDQqC/T3UdnsABlZH6aMOjgBzTdnH29dm/RBFSGKgXIGBfvNEiNa9 Jc971+WVpn100MaI/TdrflffwnUIneKMpo9evYHOrdTNgRCULuhX82a68BbQQoVJ9ILs ilQA== X-Gm-Message-State: ALoCoQlm0UJ84NJyqY92LTrSFVVrs9cEVHVjXPQ2trkA8cNDo0Xph+BDurosFXwiRaNwqXeuHvph X-Received: by 10.112.171.37 with SMTP id ar5mr516051lbc.16.1424345449002; Thu, 19 Feb 2015 03:30:49 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.100 with SMTP id i4ls113663laa.106.gmail; Thu, 19 Feb 2015 03:30:48 -0800 (PST) X-Received: by 10.112.159.137 with SMTP id xc9mr3658981lbb.6.1424345448819; Thu, 19 Feb 2015 03:30:48 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id vk9si5858855lbb.58.2015.02.19.03.30.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 03:30:48 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lamq1 with SMTP id q1so6961153lam.5 for ; Thu, 19 Feb 2015 03:30:48 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr3385762lal.73.1424345448729; Thu, 19 Feb 2015 03:30:48 -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.35.133 with SMTP id h5csp430036lbj; Thu, 19 Feb 2015 03:30:48 -0800 (PST) X-Received: by 10.140.25.208 with SMTP id 74mr10581172qgt.58.1424345447424; Thu, 19 Feb 2015 03:30:47 -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 d33si24460873qge.52.2015.02.19.03.30.46 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 03:30:47 -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 1YOPJc-0005SL-J0; Thu, 19 Feb 2015 11:30:44 +0000 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOPJX-0005Rv-3g for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 11:30:39 +0000 X-IronPort-AV: E=Sophos;i="5.09,512,1418112000"; d="scan'208";a="57341763" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw3-out.broadcom.com with ESMTP; 19 Feb 2015 03:51:32 -0800 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 19 Feb 2015 03:30:33 -0800 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.174.1; Thu, 19 Feb 2015 03:30:40 -0800 Received: from localhost.localdomain (unknown [10.131.60.56]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 2230D40FE6; Thu, 19 Feb 2015 03:29:26 -0800 (PST) From: To: Date: Thu, 19 Feb 2015 16:56:37 +0530 Message-ID: <1424345197-8815-1-git-send-email-venkatesh.vivekanandan@linaro.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Topics: patch Subject: [lng-odp] [PATCHv4 DPDK 2/6] DPDK specific changes 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: , 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: venkatesh.vivekanandan@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.43 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 From: Venkatesh Vivekanandan - Modified files to sync with linux-generic implementation Signed-off-by: Venkatesh Vivekanandan --- platform/linux-dpdk/include/odp_packet_dpdk.h | 2 -- platform/linux-dpdk/odp_packet_dpdk.c | 9 ++++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/platform/linux-dpdk/include/odp_packet_dpdk.h b/platform/linux-dpdk/include/odp_packet_dpdk.h index c3a2b70..c982d5e 100644 --- a/platform/linux-dpdk/include/odp_packet_dpdk.h +++ b/platform/linux-dpdk/include/odp_packet_dpdk.h @@ -8,10 +8,8 @@ #define ODP_PACKET_DPDK_H #include -#include #include -#include #include #include #include diff --git a/platform/linux-dpdk/odp_packet_dpdk.c b/platform/linux-dpdk/odp_packet_dpdk.c index 9fe4bbd..80ce74f 100644 --- a/platform/linux-dpdk/odp_packet_dpdk.c +++ b/platform/linux-dpdk/odp_packet_dpdk.c @@ -23,6 +23,8 @@ #include #include +#include +#include #include #include @@ -164,11 +166,8 @@ int recv_pkt_dpdk(pkt_dpdk_t * const pkt_dpdk, odp_packet_t pkt_table[], nb_rx = rte_eth_rx_burst((uint8_t)pkt_dpdk->portid, (uint16_t)pkt_dpdk->queueid, (struct rte_mbuf **)pkt_table, (uint16_t)len); - for (i = 0; i < nb_rx; i++) { - odp_packet_hdr_t *pkt_hdr = odp_packet_hdr(pkt_table[i]); - struct rte_mbuf *mb = &pkt_hdr->buf_hdr.mb; - odp_packet_parse(pkt_table[i], mb->pkt.pkt_len, 0); - } + for (i = 0; i < nb_rx; i++) + _odp_packet_parse(pkt_table[i]); return nb_rx; }