mlx4_en: Fix not deleted napi structures

Napi structures are being created each time we open a port, but when
the port is closed the napi structure is only disabled but not removed.
This bug caused hang while removing the driver.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Yevgeny Petrilin 2009-05-17 20:48:59 -07:00 коммит произвёл David S. Miller
Родитель 2513dfb83f
Коммит 72876a6034
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -125,8 +125,10 @@ void mlx4_en_deactivate_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq)
if (cq->is_tx) if (cq->is_tx)
del_timer(&cq->timer); del_timer(&cq->timer);
else else {
napi_disable(&cq->napi); napi_disable(&cq->napi);
netif_napi_del(&cq->napi);
}
mlx4_cq_free(mdev->dev, &cq->mcq); mlx4_cq_free(mdev->dev, &cq->mcq);
} }