mlx4_en: Fix BQL reset TX queue call point
authorTom Herbert <therbert@google.com>
Wed, 6 Feb 2013 07:58:41 +0000 (07:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 04:33:51 +0000 (23:33 -0500)
commit41b749201bbe54ce807c4287b4942e85cb0ca466
tree517ea10b31965d9eb40a46eb7999615fd1a81b0e
parent2de27f307feda26ef364f2407b70e3ca02a3ce56
mlx4_en: Fix BQL reset TX queue call point

Fix issue in Mellanox driver related to BQL.  netdev_tx_reset_queue
was not being called in certain situations where the device was
being start and stopped.  Moved netdev_tx_reset_queue from the reset
device path to mlx4_en_free_tx_buf which is where the rings are
cleaned in a reset (specifically from device being stopped).

Signed-off-by: Tom Herbert <therbert@google.com>
Acked-By: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c