Fix few outdated names of defines:

o NR_REG_SW_NIC -> NR_REG_SW
o NR_RING_NIC_SW -> NR_REG_NIC_SW
o NETMAP_NO_TX_SYNC -> NETMAP_NO_TX_POLL
o NETMAP_DO_RX_SYNC -> NETMAP_DO_RX_POLL

I hope dear luigi has not left those as an excercise to careful
reader, in which case I apologize in advance for ruining his play.

MFC after:     1 week
This commit is contained in:
Maxim Sobolev 2014-06-03 05:19:10 +00:00
parent 71c92ff80a
commit 415dfa833a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267001

View File

@ -612,9 +612,9 @@ In the example below, "netmap:foo" is any valid netmap port name.
.Bl -tag -width XXXXX
.It NR_REG_ALL_NIC "netmap:foo"
(default) all hardware ring pairs
.It NR_REG_SW_NIC "netmap:foo^"
.It NR_REG_SW "netmap:foo^"
the ``host rings'', connecting to the host stack.
.It NR_RING_NIC_SW "netmap:foo+
.It NR_REG_NIC_SW "netmap:foo+
all hardware rings and the host rings
.It NR_REG_ONE_NIC "netmap:foo-i"
only the i-th hardware ring pair, where the number is in
@ -639,7 +639,7 @@ or
call pushes out any pending packets on the transmit ring, even if
no write events are specified.
The feature can be disabled by or-ing
.Va NETMAP_NO_TX_SYNC
.Va NETMAP_NO_TX_POLL
to the value written to
.Va nr_ringid.
When this feature is used,
@ -679,13 +679,13 @@ are supported too.
.Pp
Packets in transmit rings are normally pushed out
(and buffers reclaimed) even without
requesting write events. Passing the NETMAP_NO_TX_SYNC flag to
requesting write events. Passing the NETMAP_NO_TX_POLL flag to
.Em NIOCREGIF
disables this feature.
By default, receive rings are processed only if read
events are requested. Passing the NETMAP_DO_RX_SYNC flag to
events are requested. Passing the NETMAP_DO_RX_POLL flag to
.Em NIOCREGIF updates receive rings even without read events.
Note that on epoll and kqueue, NETMAP_NO_TX_SYNC and NETMAP_DO_RX_SYNC
Note that on epoll and kqueue, NETMAP_NO_TX_POLL and NETMAP_DO_RX_POLL
only have an effect when some event is posted for the file descriptor.
.Sh LIBRARIES
The