]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: use netif_tx_start|stop_all_queues() function
authorOng Boon Leong <boon.leong.ong@intel.com>
Tue, 15 Sep 2020 01:28:40 +0000 (09:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 22:39:57 +0000 (15:39 -0700)
commit20b0768d91997ca5594fad5a94fedd882f63bfff
tree6e732d3bd603939c9842d8c0b05a860ac1b6f475
parent9176efee096d23470816d174f47b31297904fc53
net: stmmac: use netif_tx_start|stop_all_queues() function

The current implementation of stmmac_stop_all_queues() and
stmmac_start_all_queues() will not work correctly when the value of
tx_queues_to_use is changed through ethtool -L DEVNAME rx N tx M command.

Also, netif_tx_start|stop_all_queues() are only needed in driver open()
and close() only.

Fixes: 1c4464e9 net: stmmac: adding multiple napi mechanism
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Voon Weifeng <weifeng.voon@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c