fsl/fman: fix parser reporting bad checksum on short frames
authorMadalin Bucur <madalin.bucur@nxp.com>
Thu, 28 Jun 2018 12:26:50 +0000 (15:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:10 +0000 (13:09 +0200)
commitfba7c43d9368d90022d74a4716f33de3a6934e9b
tree593dcf11c68b240e15835d1eaf454dd456533f4c
parent3baa3f9221e221fb9488929e5289b49bb8ee7d18
fsl/fman: fix parser reporting bad checksum on short frames

[ Upstream commit b95f6fbc8e15803a596ca5e5e21008fba29694c6 ]

The FMan hardware parser needs to be configured to remove the
short frame padding from the checksum calculation, otherwise
short UDP and TCP frames are likely to be marked as having a
bad checksum.

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/fman/fman_port.c