Skip to content

Commit

Permalink
cxgb4: Use netif_set_real_num_{rx,tx}_queues()
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Sep 28, 2010
1 parent 19221e7 commit a020ed4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a020ed4

Please sign in to comment.