diff options
author | luigi <luigi@FreeBSD.org> | 2013-11-06 21:42:58 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2013-11-06 21:42:58 +0000 |
commit | 2bf8e2c5a41757e5d3af5159dd94b14f3ba31d4c (patch) | |
tree | db4e64a4dbcb8ae887f027eb4b3dfbd3302bdda2 | |
parent | 1dbe9493b0e886302320923ffb8f5b383fa1c051 (diff) | |
download | FreeBSD-src-2bf8e2c5a41757e5d3af5159dd94b14f3ba31d4c.zip FreeBSD-src-2bf8e2c5a41757e5d3af5159dd94b14f3ba31d4c.tar.gz |
the number of slots used by a packet is NS_RFRAGS() not ns_cnt
-rw-r--r-- | share/man/man4/netmap.4 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/share/man/man4/netmap.4 b/share/man/man4/netmap.4 index b43f2d6..849c2cd 100644 --- a/share/man/man4/netmap.4 +++ b/share/man/man4/netmap.4 @@ -346,13 +346,12 @@ indicates that the packet continues with subsequent buffers; the last buffer in a packet must have the flag clear. The maximum length of a chain is 64 buffers. .Em This is only supported on virtual ports -.It ns_ctr -on receive rings, contains the number of remaining buffers +.It NS_RFRAGS(slot) +on receive rings, returns the number of remaining buffers in a packet, including this one. Slots with a value greater than 1 also have NS_MOREFRAG set. The length refers to the individual buffer, there is no -field for the total length -XXX maybe put it in the ptr field ? +field for the total length. .Pp On transmit rings, if NS_DST is set, it is passed to the lookup function, which can use it e.g. as the index of the destination |