dpaa_eth: fix SG frame cleanup
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>
Fri, 3 May 2019 13:03:11 +0000 (16:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:42:33 +0000 (19:42 +0200)
commit7dcee3606e2044ab7f092cc2f2cf1e61269128a2
tree1d8ea13fe5a0470e316c904f67224d0c8117f3c9
parent100b03e87149401d9499b7579becf76140239654
dpaa_eth: fix SG frame cleanup

[ Upstream commit 17170e6570c082717c142733d9a638bcd20551f8 ]

Fix issue with the entry indexing in the sg frame cleanup code being
off-by-1. This problem showed up when doing some basic iperf tests and
manifested in traffic coming to a halt.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Acked-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c