niu: Use netif_set_real_num_{rx,tx}_queues()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 27 Sep 2010 08:30:59 +0000 (08:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2010 05:09:56 +0000 (22:09 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c

index 4cd92421708dc63bdaab6548e93065e5a5b1f434..c0437fd8d3f29a38f9dc6ada9b1bd7431262369d 100644 (file)
@@ -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);