summaryrefslogtreecommitdiffstats
path: root/sys/net/netmap_user.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/netmap_user.h')
-rw-r--r--sys/net/netmap_user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/netmap_user.h b/sys/net/netmap_user.h
index 4efdec3..743ec32 100644
--- a/sys/net/netmap_user.h
+++ b/sys/net/netmap_user.h
@@ -70,7 +70,7 @@
#define NETMAP_RXRING(nifp, index) \
((struct netmap_ring *)((char *)(nifp) + \
- (nifp)->ring_ofs[index + (nifp)->ni_tx_queues+1] ) )
+ (nifp)->ring_ofs[index + (nifp)->ni_tx_rings + 1] ) )
#define NETMAP_BUF(ring, index) \
((char *)(ring) + (ring)->buf_ofs + ((index)*(ring)->nr_buf_size))
OpenPOWER on IntegriCloud