From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.voipfuture.com (mail.voipfuture.com [213.238.34.195]) by dpdk.org (Postfix) with ESMTP id 3D7F0D560 for ; Fri, 11 Nov 2016 14:10:02 +0100 (CET) X-Footer: dm9pcGZ1dHVyZS5jb20= Received: from [192.168.1.155] ([192.168.1.1]) (authenticated user pbeyer@voipfuture.com) by mail.voipfuture.com (Kerio Connect 9.1.1) with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128 bits)) for users@dpdk.org; Fri, 11 Nov 2016 14:09:59 +0100 References: <750170fd-492a-588c-de6a-27c0547d1cbd@voipfuture.com> Cc: users@dpdk.org From: Philipp Beyer Message-ID: Date: Fri, 11 Nov 2016 14:09:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Beginners question: rte_eth_tx_burst, rte_mbuf access synchronization X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2016 13:10:02 -0000 Hi Anupam, I'm afraid, I don't get your point. rte_eth_tx_burst returning a reduced buffer count means that TX queue is filled up, doesn't it? I don't see why "buffer M does not fit into TX queue" means "buffers 1..N already transmitted". Thanks, Philipp Am 11.11.2016 um 13:35 schrieb Anupam Kapoor: > > On Fri, Nov 11, 2016 at 3:19 PM, Philipp Beyer > wrote: > > Basically, I need to send the same packet over a single interface, > over an over again, with single bytes changed each time. > I use rte_eth_tx_burst to send 16 packets at once. As I want to > re-use the same buffers in a very simple way, I just increment the > refcnt > accordingly. > > > just throwing it out there: have you considered a trivial scheme of > repeatedly invoking 'rte_eth_tx_burst(...)'​ till a value less than > 'nb_pkts' is returned. once you reach that state, then the reuse can > happen... > > -- > kind regards > anupam > ​ > > In the beginning was the lambda, and the lambda was with Emacs, and > Emacs was the lambda.