How do I poll() over just one ring on netmap?
Luigi Rizzo
rizzo at iet.unipi.it
Mon Nov 3 21:18:21 UTC 2014
On Monday, November 3, 2014, David <dajose22 at 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, regardless
> I just want to send using one.
>
> How do I poll() over just one ring?
>
> Thanks
>
> --
> David Díaz Barquero
>
> Ingeniería en Computadores
> Tecnológico de Costa Rica
> _______________________________________________
> freebsd-net at freebsd.org <javascript:;> mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org
> <javascript:;>"
--
-----------------------------------------+-------------------------------
Prof. Luigi RIZZO, rizzo at 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)
-----------------------------------------+-------------------------------
More information about the freebsd-net
mailing list