Hi, I have a question about AM335x EMAC. Does AM335x EMAC support jumbo frame packet? If yes, are there any guide which I can refer to? best regards, g.f.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi g.f,
This is a very good definition that I found on the net:
"Jumbo frames are used on local area networks that support at least 1 Gbps and can be as large as 9,000 bytes. Because jumbo frames are not defined in the IEEE 802.3 specifications for Ethernet, vendor support for jumbo frames and their maximum transmission units may vary.
Enabling jumbo frames can improve network performance by making data transmissions more efficient. The CPUs on switches and routers can only process one frame at a time. By putting a larger payload into each frame, the CPUs have fewer frames to process. In return, this can reduce the amount of heat the network devices generate.
These gains are only realized, however, if each link in the network path -- including servers and endpoints -- is configured to enable jumbo frames at the same MTU. Otherwise, performance may actually decrease as incompatible devices drop frames or fragment them, the latter of which can task the CPU with higher processing requirements. Enabling jumbo frames may also increase packet loss rates."
In my opinion it's the last consideration that matters most here, as you will not see a significant increase in size from 1500 to 2000 or so bytes per frame.
On your other question, NDK is now part of the Processor RTOS SDK: http://processors.wiki.ti.com/index.php/Processor_SDK_RTOS_NDK
The CPSW IP in AM335x (and AM437x for that matter) supports a maximum frame size of 2016 bytes (2020 with 802.1Q tag (VLAN)).
Each frame in a MAC-48 network has 18 bytes reserved for layer 2 overhead (header+FCS) which leaves 1998 bytes available for payload. Exceeding this value is not supported.
Technically, this meets the definition of "jumbo" as the MTU exceeds1500 bytes, but many expect a MTU of ~9000 when using the term.