From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) by dpdk.org (Postfix) with ESMTP id C1625D55E for ; Fri, 11 Nov 2016 13:35:12 +0100 (CET) Received: by mail-it0-f53.google.com with SMTP id u205so119355677itc.0 for ; Fri, 11 Nov 2016 04:35:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aEb7dr/E3PxVBfz9t1BcpgJb5M3DA70IcQvvz1O3Y/A=; b=muttAkOuNc0p4p1J4LzQaHXXY/F5kCGe2BHVwsTHE2zi6C5OXU78up0HHupqE6MAol tdcEZqXzZuhjLQFjdXmVf4tp+dVbdUAWVgK/9L7J1WMi70BAiYq4v3N7+6hILbVD7Ct/ G/ZKro/MNwzhqMT0Ke+3WcWFg+6Qqfw/zxdgSPZy0/IllPa0OQR+2U5pvYJdHF7kzcnn 3lDksqgxBR7PP+Lrj+VvXyyxeotbQA6friv5eny53NgXEZ+xibQ+3NoGZ0xBATJhnHXO +VkNYR/HJphkFkHv7/mi8omMbxEIBGQJSs+b0OIzB4d45qCV9ZrdISrq3HogsP5U2gVL kpjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aEb7dr/E3PxVBfz9t1BcpgJb5M3DA70IcQvvz1O3Y/A=; b=af7fhJKrlXCd17JpSoXaPgkAi5Wi6jJQ1RQErMrYmqdLkC2L0kDYo1ux8lTdgGGJs9 iU3Uqy44RrXsqVAA3G1c71+kKB3U/VmBPFMCuDe0vpi8eQxU+vKPzTkCy4oWiG7zeLiK tXsiPwoo7fKYcycjPr3R0/iY6/ODyW/4VVETVA2Xz1c4sjO2pLLxkWcW9UNWil5xsioz a7mRQ7coggWBCfmkGAyj0mtRsvKhFTTcF7idLy1Zkjq6nz/OhpnAsgYpOUBdPFL2/FPK PFeL8vNP2K0gqaHC8+tH8dmRsrmxzsyezjFgYEwNzwJ4UmQWRyJGkAGoLJze73mEk4Il Q+6Q== X-Gm-Message-State: ABUngvdm5KfUeXMmEu7YpI6V3u524oPfiI8UqeaHx9G/2Q2L4ERvH17HhzmfQMZxCLmHmR5qht6BdDmrwN8YZg== X-Received: by 10.202.173.1 with SMTP id w1mr1269071oie.164.1478867711833; Fri, 11 Nov 2016 04:35:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.87.74 with HTTP; Fri, 11 Nov 2016 04:35:11 -0800 (PST) In-Reply-To: <750170fd-492a-588c-de6a-27c0547d1cbd@voipfuture.com> References: <750170fd-492a-588c-de6a-27c0547d1cbd@voipfuture.com> From: Anupam Kapoor Date: Fri, 11 Nov 2016 18:05:11 +0530 Message-ID: To: Philipp Beyer Cc: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 12:35:13 -0000 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 a= n > 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 th= e > 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(...)'=E2=80=8B till a value less than 'nb_pkts' is returned. once you reach that state, then the reuse can happen... -- kind regards anupam =E2=80=8B In the beginning was the lambda, and the lambda was with Emacs, and Emacs was the lambda.