clarify usage of NETMAP_BUF

This commit is contained in:
luigi 2013-05-30 13:41:19 +00:00
parent 82476a4f6b
commit 93cb261dd8

View File

@ -51,8 +51,8 @@
* ring->slot[i] gives us the i-th slot (we can access
* directly plen, flags, bufindex)
*
* char *buf = NETMAP_BUF(ring, index) returns a pointer to
* the i-th buffer
* char *buf = NETMAP_BUF(ring, x) returns a pointer to
* the buffer numbered x
*
* Since rings are circular, we have macros to compute the next index
* i = NETMAP_RING_NEXT(ring, i);