]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net/mlx5e: Timeout if SQ doesn't flush during close
authorDaniel Jurgens <danielj@mellanox.com>
Thu, 30 Jun 2016 14:34:44 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 10:12:03 +0000 (06:12 -0400)
commit29429f3300a378f7c29583b4c2c2ef29e2190a69
treeff0fd039fc628d642d03aca1c27f8c0426dc9264
parent65ee67084589c1783a74b4a4a5db38d7264ec8b5
net/mlx5e: Timeout if SQ doesn't flush during close

Avoid an infinite loop by timing out waiting for the SQ to flush. Also
clean up the TX descriptors if that happens.

Fixes: f62b8bb8f2d3 ('net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality')
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c