Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347312
b: refs/heads/master
c: a323d9b
h: refs/heads/master
v: v3
  • Loading branch information
Sathya Perla authored and David S. Miller committed Dec 19, 2012
1 parent faad943 commit 68f024c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 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: c39ba1c2bdc3f97839d9b9e6bf9ffd5c754b7f95
refs/heads/master: a323d9bf835e27d5e72eae86b5a41747d98bd9d2
5 changes: 5 additions & 0 deletions trunk/drivers/net/ethernet/emulex/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,12 @@ void be_async_mcc_enable(struct be_adapter *adapter)

void be_async_mcc_disable(struct be_adapter *adapter)
{
spin_lock_bh(&adapter->mcc_cq_lock);

adapter->mcc_obj.rearm_cq = false;
be_cq_notify(adapter, adapter->mcc_obj.cq.id, false, 0);

spin_unlock_bh(&adapter->mcc_cq_lock);
}

int be_process_mcc(struct be_adapter *adapter)
Expand Down
21 changes: 12 additions & 9 deletions trunk/drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2398,13 +2398,22 @@ static int be_close(struct net_device *netdev)

be_roce_dev_close(adapter);

be_async_mcc_disable(adapter);

if (!lancer_chip(adapter))
be_intr_set(adapter, false);

for_all_evt_queues(adapter, eqo, i) {
for_all_evt_queues(adapter, eqo, i)
napi_disable(&eqo->napi);

be_async_mcc_disable(adapter);

/* Wait for all pending tx completions to arrive so that
* all tx skbs are freed.
*/
be_tx_compl_clean(adapter);

be_rx_qs_destroy(adapter);

for_all_evt_queues(adapter, eqo, i) {
if (msix_enabled(adapter))
synchronize_irq(be_msix_vec_get(adapter, eqo));
else
Expand All @@ -2414,12 +2423,6 @@ static int be_close(struct net_device *netdev)

be_irq_unregister(adapter);

/* Wait for all pending tx completions to arrive so that
* all tx skbs are freed.
*/
be_tx_compl_clean(adapter);

be_rx_qs_destroy(adapter);
return 0;
}

Expand Down

0 comments on commit 68f024c

Please sign in to comment.