From: Ben Hutchings Date: Mon, 27 Sep 2010 08:25:57 +0000 (+0000) Subject: cxgb4: Use netif_set_real_num_{rx,tx}_queues() X-Git-Tag: MMI-PSA29.97-13-9~21994^2~335 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a020ed4bb88356fea9e24ffcfd9692a835a3f122;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cxgb4: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c index 75b9401fd484..4fb08e3c3f38 100644 --- a/drivers/net/cxgb4/cxgb4_main.c +++ b/drivers/net/cxgb4/cxgb4_main.c @@ -2763,7 +2763,10 @@ static int cxgb_open(struct net_device *dev) return err; } - dev->real_num_tx_queues = pi->nqsets; + netif_set_real_num_tx_queues(dev, pi->nqsets); + err = netif_set_real_num_rx_queues(dev, pi->nqsets); + if (err) + return err; err = link_start(dev); if (!err) netif_tx_start_all_queues(dev);