diff options
author | Ben Hutchings | 2010-09-27 10:30:59 +0200 |
---|---|---|
committer | David S. Miller | 2010-09-28 07:09:56 +0200 |
commit | e2209ba35aa7050fced05bf9c4244562fcaebd63 (patch) | |
tree | f04722458eef6401ee77cffeeb23f5d0196d98bd | |
parent | myri10ge: Use netif_set_real_num_{rx, tx}_queues() (diff) | |
download | kernel-qcow2-linux-e2209ba35aa7050fced05bf9c4244562fcaebd63.tar.gz kernel-qcow2-linux-e2209ba35aa7050fced05bf9c4244562fcaebd63.tar.xz kernel-qcow2-linux-e2209ba35aa7050fced05bf9c4244562fcaebd63.zip |
niu: Use netif_set_real_num_{rx,tx}_queues()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/niu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 4cd92421708d..c0437fd8d3f2 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c @@ -4501,7 +4501,8 @@ static int niu_alloc_channels(struct niu *np) np->num_rx_rings = parent->rxchan_per_port[port]; np->num_tx_rings = parent->txchan_per_port[port]; - np->dev->real_num_tx_queues = np->num_tx_rings; + netif_set_real_num_rx_queues(np->dev, np->num_rx_rings); + netif_set_real_num_tx_queues(np->dev, np->num_tx_rings); np->rx_rings = kcalloc(np->num_rx_rings, sizeof(struct rx_ring_info), GFP_KERNEL); |