提交 63fcb27f 编写于 作者: P Padmanabh Ratnakar 提交者: David S. Miller

be2net: Disarm CQ and EQ to disable interrupt in Lancer

For Lancer disable interrupts in close by disarming CQs and EQs.
Change the order of calls in be_close to achieve the correct result.
Signed-off-by: NPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: NSathya Perla <sathya.perla@emulex.com>
Signed-off-by: NSubramanian Seetharaman <subbu.seetharaman@emulex.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d8a29d31
...@@ -2088,6 +2088,18 @@ static int be_close(struct net_device *netdev) ...@@ -2088,6 +2088,18 @@ static int be_close(struct net_device *netdev)
if (!lancer_chip(adapter)) if (!lancer_chip(adapter))
be_intr_set(adapter, false); be_intr_set(adapter, false);
for_all_rx_queues(adapter, rxo, i)
napi_disable(&rxo->rx_eq.napi);
napi_disable(&tx_eq->napi);
if (lancer_chip(adapter)) {
be_cq_notify(adapter, adapter->tx_obj.cq.id, false, 0);
be_cq_notify(adapter, adapter->mcc_obj.cq.id, false, 0);
for_all_rx_queues(adapter, rxo, i)
be_cq_notify(adapter, rxo->cq.id, false, 0);
}
if (adapter->msix_enabled) { if (adapter->msix_enabled) {
vec = be_msix_vec_get(adapter, tx_eq); vec = be_msix_vec_get(adapter, tx_eq);
synchronize_irq(vec); synchronize_irq(vec);
...@@ -2101,11 +2113,6 @@ static int be_close(struct net_device *netdev) ...@@ -2101,11 +2113,6 @@ static int be_close(struct net_device *netdev)
} }
be_irq_unregister(adapter); be_irq_unregister(adapter);
for_all_rx_queues(adapter, rxo, i)
napi_disable(&rxo->rx_eq.napi);
napi_disable(&tx_eq->napi);
/* Wait for all pending tx completions to arrive so that /* Wait for all pending tx completions to arrive so that
* all tx skbs are freed. * all tx skbs are freed.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册