dpaa_eth: fix SG mapping
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 26 Feb 2018 17:24:01 +0000 (11:24 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 06:17:40 +0000 (08:17 +0200)
commitd4d16da52e9f3fd0e82f66ac5a5034b2fde691dc
treebf34063526dd6f49cfa24ed96dc30be4fa60cbda
parentff30fd0316f6dec9aab6af794402e1363444952e
dpaa_eth: fix SG mapping

[ Upstream commit 120d75ecf043044554abbba8507f6d22e4715beb ]

An issue in the code mapping the skb fragments into
scatter-gather frames was evidentiated by netperf
TCP_SENDFILE tests. The size was set wrong for all
fragments but the first, affecting the transmission
of any skb with more than one fragment.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c