net: stmmac: fix jumbo frame sending with non-linear skbs
authorAaro Koskinen <aaro.koskinen@nokia.com>
Thu, 14 Mar 2019 19:43:20 +0000 (21:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Mar 2019 18:38:57 +0000 (11:38 -0700)
commit58f2ce6f61615dfd8dd3cc01c9e5bb54ed35637e
tree64227242a951aa1e52ea07e9f9fb98cde1e8daf3
parent80acbed9f8fca1db3fbe915540b756f048aa0fd7
net: stmmac: fix jumbo frame sending with non-linear skbs

When sending non-linear skbs with jumbo frames, we set up the non-paged
data and mark that as a last segment, although the paged fragments are
also prepared. This will stall the TX queue and trigger a watchdog warning
(a simple reproducer is to run an iperf client mode TCP test with a large
MTU - networking fails instantly).

Fix by checking if the skb is non-linear.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/ring_mode.c