<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set jumbo frame? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074880#M157796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="319107" data-username="coindu" href="https://community.nxp.com/people/coindu" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;coin du&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are glad you figured out the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know in case of any concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan Gajjar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2020 10:27:52 GMT</pubDate>
    <dc:creator>karangajjar</dc:creator>
    <dc:date>2020-04-28T10:27:52Z</dc:date>
    <item>
      <title>How to set jumbo frame?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074877#M157793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I use IMX8MQ-EVK board with L4.19.35 BSP, The network mtu is max to 1500 .&amp;nbsp; And need to&amp;nbsp; set mtu from 1500 to 9000, how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I hava modified the max_mtu as below.&lt;/P&gt;&lt;P&gt;--- a/net/ethernet/eth.c&lt;BR /&gt;+++ b/net/ethernet/eth.c&lt;BR /&gt;@@ -359,7 +359,7 @@ void ether_setup(struct net_device *dev)&lt;BR /&gt; dev-&amp;gt;min_header_len = ETH_HLEN;&lt;BR /&gt; dev-&amp;gt;mtu = ETH_DATA_LEN;&lt;BR /&gt; dev-&amp;gt;min_mtu = ETH_MIN_MTU;&lt;BR /&gt;- dev-&amp;gt;max_mtu = ETH_DATA_LEN;&lt;BR /&gt;+ dev-&amp;gt;max_mtu = ETH_MAX_MTU;&lt;BR /&gt; dev-&amp;gt;addr_len = ETH_ALEN;&lt;BR /&gt; dev-&amp;gt;tx_queue_len = DEFAULT_TX_QUEUE_LEN;&lt;BR /&gt; dev-&amp;gt;flags = IFF_BROADCAST|IFF_MULTICAST;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this value is modified, the development board which is connected to the computer directly, using tcpdump to capture packets can see that jumbo frames can be sent, but the development board cannot accept jumbo frames,I don't know the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ifconfig eth0 mtu 9000 up&lt;/P&gt;&lt;P&gt;ping ip -s 8000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 11:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074877#M157793</guid>
      <dc:creator>coindu</dc:creator>
      <dc:date>2020-04-24T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set jumbo frame?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074878#M157794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="319107" data-username="coindu" href="https://community.nxp.com/people/coindu" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;coin du&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX8MQ implements MAC ethernet&amp;nbsp;IEEE802.3-2002 standard. &lt;STRONG&gt;From the below thread you may find out the reason for not setting the MTU size more than 1500:&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/481886"&gt;Linux imx change MTU size &amp;amp;gt; 1500&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, instead of the change that you may just change following in include/uapi/linux/if_ether.h:&lt;BR /&gt;-#define ETH_DATA_LEN 1500 /* Max. octets in payload */&lt;BR /&gt;-#define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */&lt;BR /&gt;+#define ETH_DATA_LEN 9000 /* Max. octets in payload */&lt;BR /&gt;+#define ETH_FRAME_LEN 9014 /* Max. octets in frame sans FCS */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these changes we were able to get eth0 up with 9000 MTU and ping the machine:&lt;BR /&gt;root@imx8mqevk:~# ifconfig &lt;BR /&gt;eth0 Link encap:Ethernet HWaddr&amp;nbsp;XX:XX:XX:XX:XX:XX&amp;nbsp;&lt;BR /&gt; inet6 addr: &lt;SPAN&gt;XXXX:XXXX&lt;/SPAN&gt;Scope:Link&lt;BR /&gt; UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1&lt;BR /&gt; RX packets:1 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt; TX packets:15 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt; collisions:0 txqueuelen:1000 &lt;BR /&gt; RX bytes:348 (348.0 B) TX bytes:1341 (1.3 KiB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx8mqevk:~# ping &amp;lt;connected_machine_ip_addr&amp;gt;&amp;nbsp;-s 8000&lt;BR /&gt;PING &lt;SPAN&gt;XXXX:XXXX&lt;/SPAN&gt; (XXXX:XXXX): 8000 data bytes&lt;BR /&gt;8008 bytes from &lt;SPAN&gt;XXXX:XXXX&lt;/SPAN&gt; seq=0 ttl=64 time=3.905 ms&lt;BR /&gt;8008 bytes from &lt;SPAN&gt;XXXX:XXXX&lt;/SPAN&gt; seq=1 ttl=64 time=2.278 ms&lt;BR /&gt;8008 bytes from &lt;SPAN&gt;XXXX:XXXX&lt;/SPAN&gt; seq=2 ttl=64 time=2.254 ms&lt;BR /&gt;8008 bytes from &lt;SPAN&gt;XXXX:XXXX&lt;/SPAN&gt; seq=3 ttl=64 time=2.223 ms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But, along with these changes as suggested in the thread above, you might need to change the driver as well to avoid data loss.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan Gajjar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:56:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074878#M157794</guid>
      <dc:creator>karangajjar</dc:creator>
      <dc:date>2020-04-28T08:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set jumbo frame?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074879#M157795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. I view the thread and refer othear patch to set MTU up to 1956.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lore.kernel.org/patchwork/patch/742546/" title="https://lore.kernel.org/patchwork/patch/742546/"&gt;[PATCH/RFC,net-next] net: fec: allow "mini jumbo" frames - Patchwork&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074879#M157795</guid>
      <dc:creator>coindu</dc:creator>
      <dc:date>2020-04-28T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set jumbo frame?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074880#M157796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="319107" data-username="coindu" href="https://community.nxp.com/people/coindu" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;coin du&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are glad you figured out the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know in case of any concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan Gajjar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074880#M157796</guid>
      <dc:creator>karangajjar</dc:creator>
      <dc:date>2020-04-28T10:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set jumbo frame?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074881#M157797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for letting it know. We are closing the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 03:52:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1074881#M157797</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2020-04-30T03:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set jumbo frame?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1610867#M202433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to follow your steps modifying &lt;SPAN&gt;ETH_DATA_LEN and ETH_FRAME_LEN inside the&lt;/SPAN&gt;&amp;nbsp;kernel, and I actually see MTU set to 9000. When I execute &lt;FONT face="courier new,courier"&gt;ifconfing &lt;/FONT&gt;command:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8qmmek:~# &lt;STRONG&gt;ifconfig eth0 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;eth0: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt; &lt;STRONG&gt;mtu 9000&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inet XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.XXX broadcast XXX.XXX.XXX.XXX&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inet6 XXX.XXX.XXX.XXX prefixlen 64 scopeid 0x20&amp;lt;link&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RX packets 831 bytes 90815 (88.6 KiB)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RX errors 241 dropped 317 overruns 0 frame 723&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TX packets 379 bytes 1689274 (1.6 MiB)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I execute the ping command with a packet of 8000 bytes it doesn't receive any packet:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;root@imx8qmmek:~# &lt;STRONG&gt;ping&lt;/STRONG&gt; XXX.XXX.XXX.XXX &lt;STRONG&gt;-s 8000 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PING XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX) 8000(8028) bytes of data.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;^C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--- XXX.XXX.XXX.XXX ping statistics ---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;21 packets transmitted, &lt;STRONG&gt;0 received&lt;/STRONG&gt;, 100% packet loss, time 20483ms&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead if I use a smaller size:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;root@imx8qmmek:~# &lt;STRONG&gt;ping&lt;/STRONG&gt; XXX.XXX.XXX.XXX &lt;STRONG&gt;-s 1900 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PING XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX) 1900(1928) bytes of data.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1908 bytes from XXX.XXX.XXX.XXX: icmp_seq=1 ttl=64 time=1.18 ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new, courier"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1908 bytes from XXX.XXX.XXX.XXX: icmp_seq=6 ttl=64 time=1.09 ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;^C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--- 10.10.140.53 ping statistics ---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;6 packets transmitted, &lt;STRONG&gt;6 received&lt;/STRONG&gt;, 0% packet loss, time 5006ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rtt min/avg/max/mdev = 1.093/1.108/1.175/0.029 ms&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I also tried to ping using a slightly bigger packet, like 2000, but it still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In my opinion I just see a higher MTU, but the MTU is still the same.&lt;BR /&gt;Executing the following command:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;root@imx8qmmek:~# &lt;STRONG&gt;ip -d link list eth0&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2: eth0: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; &lt;STRONG&gt;mtu 9000&lt;/STRONG&gt; qdisc mq state UP mode DEFAULT group default qlen 1000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;link/ether 00:04:9f:06:95:16 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 &lt;STRONG&gt;maxmtu 1966&lt;/STRONG&gt; addrgenmode eui64 numtxqueues 3 numrxqueues 3 gso_max_size 65536 gso_max_segs 100 parentbus platform parentdev&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You can get the maximum MTU supported, which is 1966.&lt;BR /&gt;Indeed, if i try to ping using a size bigger than 1966 it won't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggest, please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 11:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-jumbo-frame/m-p/1610867#M202433</guid>
      <dc:creator>Vlongobardi</dc:creator>
      <dc:date>2023-03-07T11:48:51Z</dc:date>
    </item>
  </channel>
</rss>

