]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: stmmac: Disable EEE mode earlier in XMIT callback
authorJose Abreu <jose.abreu@synopsys.com>
Wed, 30 Jan 2019 14:54:21 +0000 (15:54 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit8aaa44ddc05727f37289e53b7ce1200ddc676458
treecf7cf08f667a1a1ad19d3c27f20f9469f2129294
parent13d939cb7d1e95d14d4f24d6174f19566fb221d1
net: stmmac: Disable EEE mode earlier in XMIT callback

BugLink: https://bugs.launchpad.net/bugs/1837813
[ Upstream commit e2cd682deb231ba6f80524bb84e57e7138261149 ]

In stmmac xmit callback we use a different flow for TSO packets but TSO
xmit callback is not disabling the EEE mode.

Fix this by disabling earlier the EEE mode, i.e. before calling the TSO
xmit callback.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c