mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
9110ee0776
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>
28 lines
864 B
Plaintext
28 lines
864 B
Plaintext
* Marvell Armada 370 / Armada XP Ethernet Controller (NETA)
|
|
|
|
Required properties:
|
|
- compatible: "marvell,armada-370-neta" or "marvell,armada-xp-neta".
|
|
- reg: address and length of the register set for the device.
|
|
- interrupts: interrupt for the device
|
|
- phy: See ethernet.txt file in the same directory.
|
|
- phy-mode: See ethernet.txt file in the same directory
|
|
- clocks: a pointer to the reference clock for this device.
|
|
|
|
Optional properties:
|
|
- tx-csum-limit: maximum mtu supported by port that allow TX checksum.
|
|
Value is presented in bytes. If not used, by default 1600B is set for
|
|
"marvell,armada-370-neta" and 9800B for others.
|
|
|
|
Example:
|
|
|
|
ethernet@d0070000 {
|
|
compatible = "marvell,armada-370-neta";
|
|
reg = <0xd0070000 0x2500>;
|
|
interrupts = <8>;
|
|
clocks = <&gate_clk 4>;
|
|
tx-csum-limit = <9800>
|
|
status = "okay";
|
|
phy = <&phy0>;
|
|
phy-mode = "rgmii-id";
|
|
};
|