]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Update netdev txq on completions during closure
authorMoshe Shemesh <moshe@mellanox.com>
Tue, 7 Apr 2020 14:38:28 +0000 (17:38 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 23 May 2020 00:28:54 +0000 (17:28 -0700)
commita64d434e6875c64f2e320355cd8fb659c7f6c90b
tree89919bb328a0a509b3d6330c6c15b23b02bb616f
parent594b15185c7e3c6c35e2e716924e16d1f7a3c28c
net/mlx5e: Update netdev txq on completions during closure

On sq closure when we free its descriptors, we should also update netdev
txq on completions which would not arrive. Otherwise if we reopen sqs
and attach them back, for example on fw fatal recovery flow, we may get
tx timeout.

Fixes: 81f56588f1fb ("net/mlx5e: Timeout if SQ doesn't flush during close")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c