From: Ben Hutchings Date: Mon, 27 Sep 2010 08:26:10 +0000 (+0000) Subject: cxgb4vf: Use netif_set_real_num_{rx, tx}_queues() X-Git-Tag: MMI-PSA29.97-13-9~21994^2~334 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=003ab6742a31662eb808f01273126830612cbda1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cxgb4vf: Use netif_set_real_num_{rx, tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c index 7b6d07f50c71..555ecc5a2e93 100644 --- a/drivers/net/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/cxgb4vf/cxgb4vf_main.c @@ -748,7 +748,10 @@ static int cxgb4vf_open(struct net_device *dev) /* * Note that this interface is up and start everything up ... */ - 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; set_bit(pi->port_id, &adapter->open_device_map); link_start(dev); netif_tx_start_all_queues(dev);