Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2014 11:58:28 +0000
From:      "Eggert, Lars" <lars@netapp.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        "net@freebsd.org" <net@freebsd.org>
Subject:   netmap extra rings and buffers
Message-ID:  <B1098F39-36FD-440B-B325-91F0FE78C9E1@netapp.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQCVAwUBVAhT59ZcnpRveo1xAQIDwQP/cMBawktTBJKscUqjacndH/NTcG5aCMvf
Q/l6qS/j2jKRPa3/JEfVf3lNfCsFgV/SYODH2UwH5Qa+Kio7Uw2QmODmCDW5taxm
ObKKZgw9s7afEBBh59NYbe1/Fq+ny+14TcXKLz2GXAAmJZoUTxXFoYHweb7XMFKj
R/+ewxVgSpc=
=RiNX
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1098F39-36FD-440B-B325-91F0FE78C9E1>