clarify usage of NETMAP_BUF
This commit is contained in:
parent
82476a4f6b
commit
93cb261dd8
@ -51,8 +51,8 @@
|
|||||||
* ring->slot[i] gives us the i-th slot (we can access
|
* ring->slot[i] gives us the i-th slot (we can access
|
||||||
* directly plen, flags, bufindex)
|
* directly plen, flags, bufindex)
|
||||||
*
|
*
|
||||||
* char *buf = NETMAP_BUF(ring, index) returns a pointer to
|
* char *buf = NETMAP_BUF(ring, x) returns a pointer to
|
||||||
* the i-th buffer
|
* the buffer numbered x
|
||||||
*
|
*
|
||||||
* Since rings are circular, we have macros to compute the next index
|
* Since rings are circular, we have macros to compute the next index
|
||||||
* i = NETMAP_RING_NEXT(ring, i);
|
* i = NETMAP_RING_NEXT(ring, i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user