clarify usage of NETMAP_BUF
This commit is contained in:
parent
2dc26832f7
commit
27892e02fb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user