]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2015 16:49:33 +0000 (09:49 -0700)
commitbfa06e6258be556d44aad030fe1babeed4f92240
treebaa8b18c6801dc038b15f3039da7fabdc1e6ef3f
parent5c40e8bf8f8239a5e1fe85ceeb8c6d930f28ef8e
net: mvneta: disable IP checksum with jumbo frames for Armada 370

[ Upstream commit b65657fc240ae6c1d2a1e62db9a0e61ac9631d7a ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/mvneta.c