diff options
author | luigi <luigi@FreeBSD.org> | 2012-04-13 16:03:07 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2012-04-13 16:03:07 +0000 |
commit | 39cda1ca4325c5b7ed65df26537fc6176664b0e7 (patch) | |
tree | 6df9197348ba0a60d72f07d20731dcaf1dbfbb31 /tools | |
parent | 9780a82bfd79651ab52a185ece1816f12c7acacb (diff) | |
download | FreeBSD-src-39cda1ca4325c5b7ed65df26537fc6176664b0e7.zip FreeBSD-src-39cda1ca4325c5b7ed65df26537fc6176664b0e7.tar.gz |
A bit of cleanup in the names of fields of netmap-related structures.
Use the name 'ring' instead of 'queue' in all fields.
Bump NETMAP_API.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/netmap/bridge.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/tools/netmap/bridge.c b/tools/tools/netmap/bridge.c index 7d2f4f4..6e20b63 100644 --- a/tools/tools/netmap/bridge.c +++ b/tools/tools/netmap/bridge.c @@ -300,7 +300,7 @@ howmany(struct my_ring *me, int tx) if (0 && verbose && tot && !tx) D("ring %s %s %s has %d avail at %d", me->ifname, tx ? "tx": "rx", - me->end > me->nifp->ni_rx_queues ? + me->end >= me->nifp->ni_tx_rings ? // XXX who comes first ? "host":"net", tot, NETMAP_TXRING(me->nifp, me->begin)->cur); return tot; @@ -361,6 +361,8 @@ main(int argc, char **argv) } } + argc -= optind; + argv += optind; if (argc > 1) ifa = argv[1]; @@ -440,8 +442,8 @@ main(int argc, char **argv) D("Wait %d secs for link to come up...", wait_link); sleep(wait_link); D("Ready to go, %s 0x%x/%d <-> %s 0x%x/%d.", - me[0].ifname, me[0].queueid, me[0].nifp->ni_rx_queues, - me[1].ifname, me[1].queueid, me[1].nifp->ni_rx_queues); + me[0].ifname, me[0].queueid, me[0].nifp->ni_rx_rings, + me[1].ifname, me[1].queueid, me[1].nifp->ni_rx_rings); /* main loop */ signal(SIGINT, sigint_h); |