]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: stmmac: fix INTR TBU status affecting irq count statistic
authorVoon Weifeng <weifeng.voon@intel.com>
Mon, 16 Aug 2021 06:15:58 +0000 (14:15 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Oct 2021 09:27:45 +0000 (11:27 +0200)
commita2bb447dfd36d7385562403c7e1f05e5b226d774
tree5bcab94c0a38b2f13da7fb7a7acb8a23c47c709c
parent11d17494bc63923b4350493421d7e3c29a87b5b1
net: stmmac: fix INTR TBU status affecting irq count statistic

BugLink: https://bugs.launchpad.net/bugs/1946788
[ Upstream commit 1975df880b959e30f28d66148a12d77b458abd76 ]

DMA channel status "Transmit buffer unavailable(TBU)" bit is not
considered as a successful dma tx. Hence, it should not affect
all the irq count statistic.

Fixes: 1103d3a5531c ("net: stmmac: dwmac4: Also use TBU interrupt to clean TX path")
Signed-off-by: Voon Weifeng <weifeng.voon@intel.com>
Signed-off-by: Vijayakannan Ayyathurai <vijayakannan.ayyathurai@intel.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: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c