projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a020ed4
)
cxgb4vf: Use netif_set_real_num_{rx, tx}_queues()
author
Ben Hutchings
<bhutchings@solarflare.com>
Mon, 27 Sep 2010 08:26:10 +0000
(08:26 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 28 Sep 2010 05:09:52 +0000
(22:09 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4vf/cxgb4vf_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/cxgb4vf/cxgb4vf_main.c
b/drivers/net/cxgb4vf/cxgb4vf_main.c
index 7b6d07f50c71a424adcba9c4fae981c842972c60..555ecc5a2e939b25028ac6a61cf2792da379caa7 100644
(file)
--- 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);