Date: Fri, 21 Feb 2014 17:08:14 -0800 From: Luigi Rizzo <rizzo@iet.unipi.it> To: jerry <jerry.lilijun@huawei.com> Cc: netdev@vger.kernel.org, "freebsd-net@freebsd.org" <net@freebsd.org> Subject: Re: netmap, VALE and netmap pipes Message-ID: <CA%2BhQ2%2BiX%2BwQuPP9=PaDF%2Bt=2z3-345j71mxxAt5CWO_nHj-fJw@mail.gmail.com> In-Reply-To: <5307F755.4090303@huawei.com> References: <CA%2BhQ2%2Bgbs9aBneUaDGAnKVoPHspzc=5o%2Bh%2Bf_K=T%2BCy8sRxr%2Bw@mail.gmail.com> <5307F755.4090303@huawei.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 21, 2014 at 5:03 PM, jerry <jerry.lilijun@huawei.com> wrote: > Hi Luigi, > > How to use netmap pipe by pkt-gen commands? > I have tried the commands as follows: > ./pkt-gen -i netmap:pipename{1 -f tx > ./pkt-gen -i netmap:pipename}1 -f rx (in another terminal) > But it works failed. > Should the pipename be replaced with a invalid NIC name such as "eth3" in > netmap mode? > netmap: expects the name of an existing device. Arbitrary names should have the 'vale' prefix e.g. ./pkt-gen -i valexx:p{0 -f tx ./pkt-gen -i valexx:p}0 -f rx > > The netmap pipe works from software ring to software ring independently > with NICs, I understand. Is that right? > > correct, but the basename is used to group ports (NICs/VALE ports and netmap pipes) that use the same shared memory so that you can do zero copy among them. cheers luigi > B.R. > Jerry > > On 2014/2/17 18:11, Luigi Rizzo wrote: > > Hi, > > we have recently made a few extensions to netmap/VALE and put various > > pieces of code on public repositories, so i thought i'd share the > > pointers. All the code below runs with equal features and performance > > on FreeBSD and Linux, and we are trying to upstream it in the relevant > > projects if possible (as an example, QEMU recently added a netmap > backend), > > at which point some of these clone repositories will become unnecessary. > > > > See http://info.iet.unipi.it/~luigi/netmap for more details. > > > > https://code.google.com/p/netmap/ > > The latest netmap code for FreeBSD/Linux. It has native support > > for certain NICs; emulated netmap over unmodified drivers; > > enhanced parallelism in the VALE switch (20 Mpps/source, scaling > > up to ~50Mpps); and a new feature called "netmap pipe" that > > does zero-copy blocking I/O at over 100 Mpps. > > Other features are the ability to allocate tons of extra > > netmap buffers, and configurable sharing of memory among NICs, > > VALE ports and netmap pipes. This increases the opportunity for > > zero copy operation. > > > > > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BiX%2BwQuPP9=PaDF%2Bt=2z3-345j71mxxAt5CWO_nHj-fJw>