From: Ben Hutchings Date: Mon, 27 Sep 2010 08:30:59 +0000 (+0000) Subject: niu: Use netif_set_real_num_{rx,tx}_queues() X-Git-Tag: upstream/snapshot3+hdmi~12689^2~327 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2209ba35aa7050fced05bf9c4244562fcaebd63;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git niu: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 4cd9242..c0437fd 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);