net: mvpp2: fix parsing fragmentation detection
authorStefan Chulski <stefanc@marvell.com>
Mon, 25 Sep 2017 12:59:46 +0000 (14:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 16:33:51 +0000 (09:33 -0700)
commitaff3da39211105a42b2108b8af79bf8e16f670fd
tree991552d91760159d0d078cf2b8b6d9a00030e530
parent2580c4c17aee3ad58e9751012bad278dd074ccae
net: mvpp2: fix parsing fragmentation detection

Parsing fragmentation detection failed due to wrong configured
parser TCAM entry's. Some traffic was marked as fragmented in RX
descriptor, even it wasn't IP fragmented. The hardware also failed to
calculate checksums which lead to use software checksum and caused
performance degradation.

Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c