]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: start/stop all tx queues upon open/close netdev
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 12 Jul 2016 21:07:00 +0000 (00:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2016 18:38:16 +0000 (11:38 -0700)
commit08daf8114ccc8e4d6c57929cb1dd0920d8513364
tree8f76ef829e4d3e424d531fde65ed37ee46d8eaab
parent71d687bb615c1a8b1b0f8c78e15c4c392ab80d25
net/mlx5e: start/stop all tx queues upon open/close netdev

Start all tx queues (including inactive ones) when opening the netdev.
Stop all tx queues (including inactive ones) when closing the netdev.

This is a workaround for the tx timeout watchdog false alarm issue in
which the netdev watchdog is polling all the tx queues which may include
inactive queues and thus once lowering the real tx queues number
(ethtool -L) it will generate tx timeout watchdog false alarms.

Fixes: 06a7574828b5 ('net/mlx5e: Implement ndo_tx_timeout callback')
Signed-off-by: Mohamad Haj Yahia <mohamad@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_main.c