From patchwork Thu Jul 17 19:04:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 33808 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 6DB7820969 for ; Thu, 17 Jul 2014 19:05:05 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id hi2sf2234898wib.2 for ; Thu, 17 Jul 2014 12:05:04 -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=FL6Wc7cbf5WqUBsNXtT8m6/B5dqD/ZN8euMowqM+zKU3RvM7YjrVzrRlHvp47zxc5H OPvWjpXGBs4/Uhfatr1sj1Hd6iM22uHAhSZ1S+LiTm+G/3+fluuFA9OMI/QS/OZYLK9u 7TqUzVEcBxRpcI38AS5g9tCmUTRb7tN6myaijrDtz6XTMOOsYrhmEt9KVDdXDv/KNyVR gcaRkqgKgBe24v9NAefF2ialq2pwJXsYMrSqkrsNXpsnXA2oSYyclRLDY51tiEfI1VS1 LmxFVosZoMhV31WhEUiQfneHbzXct+ORorPxZYZZHtRWqWl7OhocEOf8FxKaEBRnq4Ad tMeQ== X-Gm-Message-State: ALoCoQnpe0WU+M7sHFUwKU6MBqmuhM+wQCOVYd4YYEPJOmWZ0THECtFok/9qvCzFsF14foqIMYlh X-Received: by 10.112.168.230 with SMTP id zz6mr2828764lbb.10.1405623903630; Thu, 17 Jul 2014 12:05:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.203 with SMTP id c69ls765267qgd.85.gmail; Thu, 17 Jul 2014 12:05:03 -0700 (PDT) X-Received: by 10.236.1.36 with SMTP id 24mr64700688yhc.45.1405623903453; Thu, 17 Jul 2014 12:05:03 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id b23si8687497yhl.154.2014.07.17.12.05.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Jul 2014 12:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so5400093vcb.5 for ; Thu, 17 Jul 2014 12:05:03 -0700 (PDT) X-Received: by 10.52.244.138 with SMTP id xg10mr18269280vdc.40.1405623903058; Thu, 17 Jul 2014 12:05:03 -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 tc5csp60029vcb; Thu, 17 Jul 2014 12:05:02 -0700 (PDT) X-Received: by 10.224.28.65 with SMTP id l1mr61799661qac.87.1405623902403; Thu, 17 Jul 2014 12:05:02 -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 n9si5290347qcc.26.2014.07.17.12.05.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 17 Jul 2014 12:05:02 -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 1X7qwr-0004EN-Ab; Thu, 17 Jul 2014 19:02:33 +0000 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X7qwm-0004Dt-1e for lng-odp@lists.linaro.org; Thu, 17 Jul 2014 19:02:28 +0000 X-IronPort-AV: E=Sophos;i="5.01,679,1400050800"; d="scan'208";a="39741728" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 17 Jul 2014 12:13:40 -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; Thu, 17 Jul 2014 12:04:50 -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; Thu, 17 Jul 2014 12:04:50 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 958F99F9F7; Thu, 17 Jul 2014 12:04:49 -0700 (PDT) From: To: Date: Fri, 18 Jul 2014 00:34:36 +0530 Message-ID: <1405623876-30064-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] [PATCHv5 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.174 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);