]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY
authorEsben Haabendal <esben@geanix.com>
Fri, 18 Jun 2021 10:52:38 +0000 (12:52 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:33 +0000 (08:48 -0400)
commita5ccdf780c934efd5fbc41a717a998362d76c004
tree6d39bd32b4fb1922071881d8552a7f4a9ffce156
parent987c6da9b2f4ba5a74545477c740178e06c2da45
net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY

[ Upstream commit f6396341194234e9b01cd7538bc2c6ac4501ab14 ]

As documented in Documentation/networking/driver.rst, the ndo_start_xmit
method must not return NETDEV_TX_BUSY under any normal circumstances, and
as recommended, we simply stop the tx queue in advance, when there is a
risk that the next xmit would cause a NETDEV_TX_BUSY return.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/xilinx/ll_temac_main.c