From patchwork Fri Jul 11 18:36:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 33510 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ECC6E203C0 for ; Fri, 11 Jul 2014 18:36:45 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id j17sf6914042oag.8 for ; Fri, 11 Jul 2014 11:36:45 -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=NO0AmLrch4+/pBCe1g6j6jUHXudv3cbEU9I+vFjYxQE=; b=H2+y+PHnPM4/EaZ0LUw6jS3q0+86L/AIka+g88UGxk7z2X9GWrIi8D6YhDGjkWB1CX ISqQKbM3fE5qfFp9uPbukGy0XCPb/GhNhB96LaB0+wgk+HpyAkwuAJ+G9Fa9cwom4tnG PX9lFELTqeWArrnHVRV4SxCQcf8OtGKl7EAja7fRWoSI2nRAY+9erDWpUYasvOtgJJjL j474pryQNpLMbTnw8/+IOaz81diGDrMsAqqosMBFxIyxbeZ5Jm5BSlgdBaVMdyGq0aXO CurvAJpUxAvRBLOk84zh5/xdQuC7pqJ7VLkEKjn1xEhHtVPRGgUq2Lzqy2eJXMYsDdp0 qRxw== X-Gm-Message-State: ALoCoQnknmxN0NKm9cZNX6WiKUw1VTyZEAU6wa6hD/vpvAbKdv8b5Mx8Q7JrzTMTuAFi1KSyZVQ/ X-Received: by 10.42.39.140 with SMTP id h12mr2699462ice.9.1405103805144; Fri, 11 Jul 2014 11:36:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.198 with SMTP id h64ls475658qgf.66.gmail; Fri, 11 Jul 2014 11:36:45 -0700 (PDT) X-Received: by 10.52.253.140 with SMTP id aa12mr530669vdd.11.1405103805052; Fri, 11 Jul 2014 11:36:45 -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 b5si2287722vdh.69.2014.07.11.11.36.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jul 2014 11:36:45 -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 hy4so2846612vcb.33 for ; Fri, 11 Jul 2014 11:36:45 -0700 (PDT) X-Received: by 10.221.34.13 with SMTP id sq13mr870725vcb.16.1405103804847; Fri, 11 Jul 2014 11:36:44 -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 tc5csp57866vcb; Fri, 11 Jul 2014 11:36:44 -0700 (PDT) X-Received: by 10.224.13.4 with SMTP id z4mr703116qaz.51.1405103804254; Fri, 11 Jul 2014 11:36:44 -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 u5si4646834qar.96.2014.07.11.11.36.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 11 Jul 2014 11:36:44 -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 1X5feK-0007Ra-9g; Fri, 11 Jul 2014 18:34:24 +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 1X5feF-0007RJ-S5 for lng-odp@lists.linaro.org; Fri, 11 Jul 2014 18:34:19 +0000 X-IronPort-AV: E=Sophos;i="5.01,644,1400050800"; d="scan'208";a="38798565" Received: from irvexchcas07.broadcom.com (HELO IRVEXCHCAS07.corp.ad.broadcom.com) ([10.9.208.55]) by mail-gw2-out.broadcom.com with ESMTP; 11 Jul 2014 11:44:26 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 11 Jul 2014 11:36:33 -0700 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; Fri, 11 Jul 2014 11:36:33 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id D4AB19FA23; Fri, 11 Jul 2014 11:36:15 -0700 (PDT) From: To: Date: Sat, 12 Jul 2014 00:06:05 +0530 Message-ID: <1405103765-15250-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] [PATCH 1/1] Fix to give back the sent buffers to buffer pool. 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 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 abea0ec..3d4f5d4 100644 --- a/platform/linux-dpdk/odp_packet_io.c +++ b/platform/linux-dpdk/odp_packet_io.c @@ -323,6 +323,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); switch (pktio_entry->s.params.type) { case ODP_PKTIO_TYPE_SOCKET_BASIC: