aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-09-27 04:30:59 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-28 01:09:56 -0400
commite2209ba35aa7050fced05bf9c4244562fcaebd63 (patch)
treef04722458eef6401ee77cffeeb23f5d0196d98bd
parentc99202684f7a45c965cb13fa6bb647f2ce9d27fa (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 4cd92421708..c0437fd8d3f 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -4501,7 +4501,8 @@ static int niu_alloc_channels(struct niu *np)
4501 np->num_rx_rings = parent->rxchan_per_port[port]; 4501 np->num_rx_rings = parent->rxchan_per_port[port];
4502 np->num_tx_rings = parent->txchan_per_port[port]; 4502 np->num_tx_rings = parent->txchan_per_port[port];
4503 4503
4504 np->dev->real_num_tx_queues = np->num_tx_rings; 4504 netif_set_real_num_rx_queues(np->dev, np->num_rx_rings);
4505 netif_set_real_num_tx_queues(np->dev, np->num_tx_rings);
4505 4506
4506 np->rx_rings = kcalloc(np->num_rx_rings, sizeof(struct rx_ring_info), 4507 np->rx_rings = kcalloc(np->num_rx_rings, sizeof(struct rx_ring_info),
4507 GFP_KERNEL); 4508 GFP_KERNEL);