aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_main.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 68b9d17a0f1a..a7fd833fe7d2 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -2088,6 +2088,18 @@ static int be_close(struct net_device *netdev)
2088 if (!lancer_chip(adapter)) 2088 if (!lancer_chip(adapter))
2089 be_intr_set(adapter, false); 2089 be_intr_set(adapter, false);
2090 2090
2091 for_all_rx_queues(adapter, rxo, i)
2092 napi_disable(&rxo->rx_eq.napi);
2093
2094 napi_disable(&tx_eq->napi);
2095
2096 if (lancer_chip(adapter)) {
2097 be_cq_notify(adapter, adapter->tx_obj.cq.id, false, 0);
2098 be_cq_notify(adapter, adapter->mcc_obj.cq.id, false, 0);
2099 for_all_rx_queues(adapter, rxo, i)
2100 be_cq_notify(adapter, rxo->cq.id, false, 0);
2101 }
2102
2091 if (adapter->msix_enabled) { 2103 if (adapter->msix_enabled) {
2092 vec = be_msix_vec_get(adapter, tx_eq); 2104 vec = be_msix_vec_get(adapter, tx_eq);
2093 synchronize_irq(vec); 2105 synchronize_irq(vec);
@@ -2101,11 +2113,6 @@ static int be_close(struct net_device *netdev)
2101 } 2113 }
2102 be_irq_unregister(adapter); 2114 be_irq_unregister(adapter);
2103 2115
2104 for_all_rx_queues(adapter, rxo, i)
2105 napi_disable(&rxo->rx_eq.napi);
2106
2107 napi_disable(&tx_eq->napi);
2108
2109 /* Wait for all pending tx completions to arrive so that 2116 /* Wait for all pending tx completions to arrive so that
2110 * all tx skbs are freed. 2117 * all tx skbs are freed.
2111 */ 2118 */