netmap extra rings and buffers

Eggert, Lars lars at netapp.com
Thu Sep 4 11:58:42 UTC 2014


Hi Luigi,

I'm allocating extra rings and/or extra buffers via the nr_arg1/nr_arg3 parameters for NIOCREGIF.

Once I've done that, how do I actually access those rings and buffers?

For extra rings, the documentation and example code don't really say anything.

For extra buffers, the documentation says "nifp->ni_bufs_head will be the index of the first buffer" but doesn't really explain how I can find the buffer given its index (since it's not in a ring, the NETMAP_BUF macro doesn't seem to apply?) The part about "buffers are linked to each other using the first uint32_t as the index" is also unclear to me.

Do you have some more text or example code that shows how to use extra rings and buffers?

Thanks,
Lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20140904/b8c8d8f1/attachment.sig>


More information about the freebsd-net mailing list