diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2012-04-13 16:03:07 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2012-04-13 16:03:07 +0000 |
| commit | d76bf4ff7b9b7bcecd295403d2663218bb646dab (patch) | |
| tree | 6df9197348ba0a60d72f07d20731dcaf1dbfbb31 /sys/dev/netmap/netmap_mem1.c | |
| parent | 82d2fe1069fbd61e3a2ed1ebf69f91fb85cba275 (diff) | |
Notes
Diffstat (limited to 'sys/dev/netmap/netmap_mem1.c')
| -rw-r--r-- | sys/dev/netmap/netmap_mem1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/netmap/netmap_mem1.c b/sys/dev/netmap/netmap_mem1.c index a4382f5de8b4b..521855aa385fb 100644 --- a/sys/dev/netmap/netmap_mem1.c +++ b/sys/dev/netmap/netmap_mem1.c @@ -280,8 +280,8 @@ netmap_if_new(const char *ifname, struct netmap_adapter *na) struct netmap_kring *kring; char *buff; u_int i, len, ofs, numdesc; - u_int nrx = na->num_rx_queues + 1; /* shorthand, include stack queue */ - u_int ntx = na->num_tx_queues + 1; /* shorthand, include stack queue */ + u_int nrx = na->num_rx_rings + 1; /* shorthand, include stack queue */ + u_int ntx = na->num_tx_rings + 1; /* shorthand, include stack queue */ /* * the descriptor is followed inline by an array of offsets @@ -293,8 +293,8 @@ netmap_if_new(const char *ifname, struct netmap_adapter *na) return (NULL); /* initialize base fields */ - *(int *)(uintptr_t)&nifp->ni_rx_queues = na->num_rx_queues; - *(int *)(uintptr_t)&nifp->ni_tx_queues = na->num_tx_queues; + *(int *)(uintptr_t)&nifp->ni_rx_rings = na->num_rx_rings; + *(int *)(uintptr_t)&nifp->ni_tx_rings = na->num_tx_rings; strncpy(nifp->ni_name, ifname, IFNAMSIZ); (na->refcount)++; /* XXX atomic ? we are under lock */ |
