From patchwork Mon Jul 21 06:22:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 33947 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7E833202DA for ; Mon, 21 Jul 2014 06:22:58 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hq11sf16761130vcb.11 for ; Sun, 20 Jul 2014 23:22:58 -0700 (PDT) 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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=USe2niA4txr9G2vzKYl9XBzerwym8NpAxQ0i52YMLQ4=; b=Ioct0HU44qmWAhMEO52XMu2tIkBhEKVRf/N40REXju8F8YQo7A/Sp8HS5lNAofYjB4 OjeyZuBwASqIEywwp4tU6TtYVaVtF80qTccHlNKn3tE0Wk05OAwiUJIqub3kkZGolLJE okNtLNSOVDPCLWUKQKhcLH71x2SWXtnyiQmJXZFlZgG7255CerZRcVUNBISzDEPpBF09 JxnuEoNKp2A2VMwJLlzOtKcGe1K6TgEHNPYk2BBWtdY+LtISzM0zuJ9mx9Nnre6qhlSY Q6DLZgKEAa321dKNvUbPt3FfhEyUzBprfMTnLK5WFfXLUF3JcQF6kyWkueI2D9z2uRVP GCpA== X-Gm-Message-State: ALoCoQl7WH57wMuN5NzWoXJWo0dVHHX3UCQ81/coseNs6T4YqlfnpcSi27tojU8EQXfarXyNhY7l X-Received: by 10.236.161.8 with SMTP id v8mr10164311yhk.0.1405923778213; Sun, 20 Jul 2014 23:22:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.199 with SMTP id t65ls1558370qgd.93.gmail; Sun, 20 Jul 2014 23:22:58 -0700 (PDT) X-Received: by 10.52.136.196 with SMTP id qc4mr11056953vdb.22.1405923778137; Sun, 20 Jul 2014 23:22:58 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id i4si2048629vdg.41.2014.07.20.23.22.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jul 2014 23:22:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hy4so11089166vcb.8 for ; Sun, 20 Jul 2014 23:22:58 -0700 (PDT) X-Received: by 10.52.69.172 with SMTP id f12mr22931137vdu.9.1405923778044; Sun, 20 Jul 2014 23:22:58 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp86831vcb; Sun, 20 Jul 2014 23:22:57 -0700 (PDT) X-Received: by 10.140.31.246 with SMTP id f109mr35967984qgf.8.1405923777634; Sun, 20 Jul 2014 23:22:57 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c7si15617504qar.121.2014.07.20.23.22.57 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 20 Jul 2014 23:22:57 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X96zw-0000k1-Tj; Mon, 21 Jul 2014 06:22:56 +0000 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X96zq-0000jh-4B for lng-odp@lists.linaro.org; Mon, 21 Jul 2014 06:22:50 +0000 X-IronPort-AV: E=Sophos;i="5.01,698,1400050800"; d="scan'208";a="39846801" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw3-out.broadcom.com with ESMTP; 20 Jul 2014 23:32:25 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Sun, 20 Jul 2014 23:22:44 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Sun, 20 Jul 2014 23:22:44 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 4E1499F9F7; Sun, 20 Jul 2014 23:22:42 -0700 (PDT) From: To: Date: Mon, 21 Jul 2014 11:52:32 +0530 Message-ID: <1405923752-3412-1-git-send-email-venkatesh.vivekanandan@linaro.org> X-Mailer: git-send-email 1.8.1.2 MIME-Version: 1.0 X-Topics: patch Subject: [lng-odp] [PATCHv7 1/1] Need not push this patch to the upstream 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.220.177 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 - Fix to give transmitted buffers back to buffer pool. - If there are issues seen while sending traffic, ONLY then this patch has to be applied. Intention of this patch is to fix the traffic issue. Signed-off-by: Venkatesh Vivekanandan --- platform/linux-dpdk/odp_packet_io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linux-dpdk/odp_packet_io.c b/platform/linux-dpdk/odp_packet_io.c index d8d127f..980a15c 100644 --- a/platform/linux-dpdk/odp_packet_io.c +++ b/platform/linux-dpdk/odp_packet_io.c @@ -230,6 +230,9 @@ int odp_pktio_recv(odp_pktio_t id, odp_packet_t pkt_table[], unsigned len) if (pktio_entry == NULL) return -1; + if (pktio_entry->s.params.type == ODP_PKTIO_TYPE_DPDK) + odp_pktio_send(id, pkt_table, 0); + lock_entry(pktio_entry); pkts = recv_pkt_dpdk(&pktio_entry->s.pkt_dpdk, pkt_table, len); unlock_entry(pktio_entry);