]> 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)
commitf71b417ef271ff1ef694d5bfb4a61bb53ee486c3
treec648dc126b37d0b47ff022c8fb82ac80e2248f39
parent1e7ddfe980c59fbd34490746fc3386cde54619da
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