]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f55523a0a7a640470262a3a1c28f120d407c0b5
tree411a18aa099ccde4156d9faa8304423ba30360a5
parent40e68041c019b221784d8c0278aaf68ea8d33be6
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