]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: enable setting custom TX IP checksum limit
authorMarcin Wojtas <mw@semihalf.com>
Mon, 30 Nov 2015 12:27:45 +0000 (13:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 04:35:05 +0000 (23:35 -0500)
commit65a3dfd5b7c409fccdb0bcc143a2a3b8bb30443d
treec648dc126b37d0b47ff022c8fb82ac80e2248f39
parentb2776b791c36d4ab751a4e9875acdc85d753c3be
net: mvneta: enable setting custom TX IP checksum limit

Since Armada 38x SoC can support IP checksum for jumbo frames only on
a single port, it means that this feature should be enabled per-port,
rather than for the whole SoC.

This patch enables setting custom TX IP checksum limit by adding new
optional property to the mvneta device tree node. If not used, by
default 1600B is set for "marvell,armada-370-neta" and 9800B for other
strings, which ensures backward compatibility. Binding documentation
is updated accordingly.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt
drivers/net/ethernet/marvell/mvneta.c