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)
commit9f19306d166688a73356aa636c62e698bf2063cc
tree6e732d3bd603939c9842d8c0b05a860ac1b6f475
parent686cff3d7022ddf35d7e38bc80191eb92de5989a
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: c22a3f48 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