net: mvneta: disable IP checksum with jumbo frames for Armada 370
authorSimon Guinot <simon.guinot@sequanux.org>
Tue, 30 Jun 2015 14:20:22 +0000 (16:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2015 16:37:09 +0000 (09:37 -0700)
commitb65657fc240ae6c1d2a1e62db9a0e61ac9631d7a
tree3c990374ed0161978ade22ebff1729c093e140be
parentea3b55fe83b5fcede82d183164b9d6831b26e33b
net: mvneta: disable IP checksum with jumbo frames for Armada 370

The Ethernet controller found in the Armada 370, 380 and 385 SoCs don't
support TCP/IP checksumming with frame sizes larger than 1600 bytes.

This patch fixes the issue by disabling the features NETIF_F_IP_CSUM and
NETIF_F_TSO for the Armada 370 and compatibles SoCs when the MTU is set
to a value greater than 1600 bytes.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP network unit")
Cc: <stable@vger.kernel.org> # v3.8+
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c