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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 09:51:06 +0000 (18:51 +0900)
commitb95f6fbc8e15803a596ca5e5e21008fba29694c6
tree411a18aa099ccde4156d9faa8304423ba30360a5
parent484c016d9392786ce5c74017c206c706f29f823d
fsl/fman: fix parser reporting bad checksum on short frames

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>
drivers/net/ethernet/freescale/fman/fman_port.c