]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix incorrect location to set real_num_rx|tx_queues
authorAashish Verma <aashishx.verma@intel.com>
Tue, 15 Sep 2020 01:28:39 +0000 (09:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 22:39:47 +0000 (15:39 -0700)
commit9176efee096d23470816d174f47b31297904fc53
tree023c46525ed346f12cb871591d0682fa2775b488
parente6744ea6e5815d31587019c48ad57537dd7657a8
net: stmmac: Fix incorrect location to set real_num_rx|tx_queues

netif_set_real_num_tx_queues() & netif_set_real_num_rx_queues() should be
used to inform network stack about the real Tx & Rx queue (active) number
in both stmmac_open() and stmmac_resume(), therefore, we move the code
from stmmac_dvr_probe() to stmmac_hw_setup().

Fixes: 62cc5375af9f net: stmmac: use netif_set_real_num_{rx,tx}_queues
Signed-off-by: Aashish Verma <aashishx.verma@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c