From 93cb261dd8dc721ae8ea515803443a2a18122021 Mon Sep 17 00:00:00 2001 From: luigi Date: Thu, 30 May 2013 13:41:19 +0000 Subject: [PATCH] clarify usage of NETMAP_BUF --- sys/net/netmap_user.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/netmap_user.h b/sys/net/netmap_user.h index 75f211e333d1..fcb5cb3ea1c1 100644 --- a/sys/net/netmap_user.h +++ b/sys/net/netmap_user.h @@ -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);