Skip to content

Commit

Permalink
ucc_geth: Reset BQL queue when stopping device
Browse files Browse the repository at this point in the history
After a timeout event caused by for example a broadcast storm, when
the MAC and PHY are reset, the BQL TX queue needs to be reset as
well. Otherwise, the device will exhibit severe performance issues
even after the storm has ended.

Co-authored-by: David Gounaris <david.gounaris@infinera.com>
Signed-off-by: Mathias Thore <mathias.thore@infinera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
2 people authored and David S. Miller committed Jan 30, 2019
1 parent 794827f commit e15aa3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/freescale/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1879,6 +1879,8 @@ static void ucc_geth_free_tx(struct ucc_geth_private *ugeth)
u16 i, j;
u8 __iomem *bd;

netdev_reset_queue(ugeth->ndev);

ug_info = ugeth->ug_info;
uf_info = &ug_info->uf_info;

Expand Down

0 comments on commit e15aa3b

Please sign in to comment.