Date: Mon, 3 Nov 2014 13:18:17 -0800 From: Luigi Rizzo <rizzo@iet.unipi.it> To: David <dajose22@gmail.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: How do I poll() over just one ring on netmap? Message-ID: <CA%2BhQ2%2Bg6qkD174KmY-o39FDknoKDyrLiimadDU%2Bz6s6JiSTJwQ@mail.gmail.com> In-Reply-To: <CAHYV_8znPK_ee_3U4JKZ5UPZ8uKroedGO80-ErzLvvgWWMZH=g@mail.gmail.com> References: <CAHYV_8znPK_ee_3U4JKZ5UPZ8uKroedGO80-ErzLvvgWWMZH=g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, November 3, 2014, David <dajose22@gmail.com> wrote: > hi, > > I've been working with netmap with great results. My problem now is that = I > haven't figure out how to poll on just one TX ring to check for space > available. You have to specify a single ring index as the argument to the NIOCREGIF ioctl (or equivalent info as the name to nm_open(), e.g. netmap:ix0-2 to revrivr notifications from the third ring. Note that pkt-gen is not yet able to support one ring at a time (it will always use all rings, either with a single thread for all or with one thread per ring). Cheers Luigi > I have several tx ring connected. I've been working with the pkt-gen > example and I found a call to poll(), but when I step into the code that > handles that I notice it is going over all the available rings, regardles= s > I just want to send using one. > > How do I poll() over just one ring? > > Thanks > > -- > David D=C3=ADaz Barquero > > Ingenier=C3=ADa en Computadores > Tecnol=C3=B3gico de Costa Rica > _______________________________________________ > freebsd-net@freebsd.org <javascript:;> mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org > <javascript:;>" --=20 -----------------------------------------+------------------------------- 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%2Bg6qkD174KmY-o39FDknoKDyrLiimadDU%2Bz6s6JiSTJwQ>