Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313888
b: refs/heads/master
c: 7f64006
h: refs/heads/master
v: v3
  • Loading branch information
Sathya Perla authored and David S. Miller committed Jun 6, 2012
1 parent 7b0a06e commit c952945
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0513ac3d2212072c6694430b1003ad4246a35466
refs/heads/master: 7f6400626631454f5b535eb92c09a35390777a52
8 changes: 7 additions & 1 deletion trunk/drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,12 @@ static int be_rx_cqs_create(struct be_adapter *adapter)
*/
adapter->num_rx_qs = (num_irqs(adapter) > 1) ?
num_irqs(adapter) + 1 : 1;
if (adapter->num_rx_qs != MAX_RX_QS) {
rtnl_lock();
netif_set_real_num_rx_queues(adapter->netdev,
adapter->num_rx_qs);
rtnl_unlock();
}

adapter->big_page_size = (1 << get_order(rx_frag_size)) * PAGE_SIZE;
for_all_rx_queues(adapter, rxo, i) {
Expand Down Expand Up @@ -3740,7 +3746,7 @@ static int __devinit be_probe(struct pci_dev *pdev,
goto disable_dev;
pci_set_master(pdev);

netdev = alloc_etherdev_mq(sizeof(struct be_adapter), MAX_TX_QS);
netdev = alloc_etherdev_mqs(sizeof(*adapter), MAX_TX_QS, MAX_RX_QS);
if (netdev == NULL) {
status = -ENOMEM;
goto rel_reg;
Expand Down

0 comments on commit c952945

Please sign in to comment.