Set MTU of MGBE0

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
2.1.0
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi,
I want to set the jumbo packet setting to mgbe0_0. (i. e. mtu=9000)
I tried configure via netplan as above, but settings are not reflected.

netplan_settings.yaml

network:
    version: 2
    renderer: networkd
    ethernets:
        mgbe0_0:
            addresses: [192.168.14.204/24]
            mtu: 9000
        mgbe1_0:
            addresses: [192.168.10.204/24]
            mtu: 9000
        mgbe2_0:
            addresses: [192.168.41.205/24]
            mtu: 9000
        mgbe3_0:
            addresses: [192.168.40.204/24]
            mtu: 9000
        eqos_0:
            dhcp4: true
            mtu: 9000
        enP7p1s0:
            dhcp4: true
            mtu: 9000

result of ifconfig after “netplan apply” and reboot

enP7p1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
        inet6 fe80::4ab0:2dff:fe91:cf89  prefixlen 64  scopeid 0x20<link>
        ether 48:b0:2d:91:cf:89  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11  bytes 1731 (1.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eqos_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1466
        inet 43.15.245.249  netmask 255.255.252.0  broadcast 43.15.247.255
        inet6 fe80::4ab0:2dff:fec0:9f39  prefixlen 64  scopeid 0x20<link>
        inet6 2001:cf8:1:14c1:0:dddd:5f38:78f2  prefixlen 128  scopeid 0x0<global>
        ether 48:b0:2d:c0:9f:39  txqueuelen 1000  (Ethernet)
        RX packets 86  bytes 8595 (8.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 42  bytes 7440 (7.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mgbe0_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1466     <----- this value is not changed
        inet 192.168.14.204  netmask 255.255.255.0  broadcast 192.168.14.255
        inet6 fe80::4ab0:2dff:fec0:9f3b  prefixlen 64  scopeid 0x20<link>
        ether 48:b0:2d:c0:9f:3b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11  bytes 942 (942.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mgbe1_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8966
        inet 192.168.10.204  netmask 255.255.255.0  broadcast 192.168.10.255
        inet6 fe80::4ab0:2dff:fec0:9f3d  prefixlen 64  scopeid 0x20<link>
        ether 48:b0:2d:c0:9f:3d  txqueuelen 1000  (Ethernet)
        RX packets 242  bytes 13399 (13.3 KB)
        RX errors 0  dropped 37  overruns 0  frame 0
        TX packets 6  bytes 516 (516.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mgbe2_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8966
        inet 192.168.41.205  netmask 255.255.255.0  broadcast 192.168.41.255
        inet6 fe80::4ab0:2dff:fec0:9f3f  prefixlen 64  scopeid 0x20<link>
        ether 48:b0:2d:c0:9f:3f  txqueuelen 1000  (Ethernet)
        RX packets 187  bytes 11392 (11.3 KB)
        RX errors 0  dropped 186  overruns 0  frame 0
        TX packets 27  bytes 4862 (4.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mgbe2_0.200: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8966
        inet 10.42.0.28  netmask 255.255.255.0  broadcast 10.42.0.255
        ether 48:b0:2d:c0:9f:3f  txqueuelen 1000  (Ethernet)
        RX packets 1  bytes 42 (42.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19  bytes 4110 (4.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mgbe3_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8966
        inet 192.168.40.204  netmask 255.255.255.0  broadcast 192.168.40.255
        inet6 fe80::4ab0:2dff:fec0:9f41  prefixlen 64  scopeid 0x20<link>
        ether 48:b0:2d:c0:9f:41  txqueuelen 1000  (Ethernet)
        RX packets 180  bytes 10980 (10.9 KB)
        RX errors 0  dropped 180  overruns 0  frame 0
        TX packets 9  bytes 766 (766.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Can I set the large mtu to mgbe0_0?

Dear @Yuhei.A.Kamei,
Does below work for you?

nvidia@tegra-ubuntu:~$ sudo ifconfig mgbe0_0 down
nvidia@tegra-ubuntu:~$ sudo ifconfig mgbe0_0 mtu 9000
nvidia@tegra-ubuntu:~$ sudo ifconfig mgbe0_0 up
nvidia@tegra-ubuntu:~$ ifconfig mgbe0_0
mgbe0_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8966
        inet6 fe80::4ab0:2dff:fe67:4a8a  prefixlen 64  scopeid 0x20<link>
        ether 48:b0:2d:67:4a:8a  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1692  bytes 513329 (513.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Dear @Yuhei.A.Kamei,
From log, I see except mgbe0_0, other interfaced mtu size updated to 8966. Could you share the followed commands to repro.
Below steps followed on 6.0.10 did not work for me.

nvidia@tegra-ubuntu:~$ cat ~/netplan-new.yaml
network:
    version: 2
    renderer: networkd
    ethernets:
        mgbe0_0:
            addresses: [192.168.14.204/24]
            mtu: 9000
        mgbe1_0:
            addresses: [192.168.10.204/24]
            mtu: 9000
        mgbe2_0:
            addresses: [192.168.41.205/24]
            mtu: 9000
        mgbe3_0:
            addresses: [192.168.40.204/24]
            mtu: 9000
        eqos_0:
            dhcp4: true
            mtu: 9000
        enP7p1s0:
            dhcp4: true
            mtu: 9000
nvidia@tegra-ubuntu:~$ sudo netplan apply netplan-new.yaml
  1. put my yaml file of netplan to /etc/netplan
  2. execute as bellow
    sudo netplan apply
    
  3. reboot orin

After above process, I check MTU value via ifconfig, I see that all but eqos_0 and mgbe0_0 were set to 8966, and eqos_0 and mgbe0_0 were set to 1466.
I want to set MTU = 9000 to mgbe0_0.
(I already know that eqos_0’s MTU is up to 1500 from another forum page.)

Sorry I missed this reply.
It does work.

nvidia@tegra-ubuntu:~$ sudo ifconfig mgbe0_0 down
nvidia@tegra-ubuntu:~$ sudo ifconfig mgbe0_0 mtu 9000
nvidia@tegra-ubuntu:~$ sudo ifconfig mgbe0_0 up
nvidia@tegra-ubuntu:~$ sudo ifconfig mgbe0_0
mgbe0_0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8966
        inet 192.168.20.80  netmask 255.255.255.0  broadcast 192.168.20.255
        inet6 fe80::4ab0:2dff:fec0:9f3b  prefixlen 64  scopeid 0x20<link>
        ether 48:b0:2d:c0:9f:3b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 42  bytes 3288 (3.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

But after rebooting, the MTU value of mgbe0_0 went back to 1466.
Can’t I set MTU value by netplan?

I also notice same issue. Let me check and get back to you

1 Like

Dear @Yuhei.A.Kamei ,
Could you share output of sudo dmesg | grep -ie mgbe0 -ie mgbe1 -ie mgbe2 -ie mgbe3 -ie eqos after reboot?

This is the result of command just after rebooting.

nvidia@tegra-ubuntu:~$ sudo dmesg | grep -ie mgbe0  -ie mgbe1   -ie mgbe2   -ie mgbe3 -ie eqos
[    1.387842] nvpps c6a0104.nvpps: using ptp notifier method with interface(mgbe2_0)
[    1.404495] nvethernet 2310000.ethernet: eqos_0 (HW ver: 53) created with 8 DMA channels
[    1.412315] nvethernet 6810000.ethernet: mgbe0_0 (HW ver: 31) created with 10 DMA channels
[    1.417769] nvethernet 6910000.ethernet: mgbe1_0 (HW ver: 31) created with 10 DMA channels
[    1.425468] nvethernet 6a10000.ethernet: mgbe2_0 (HW ver: 31) created with 10 DMA channels
[    1.432116] nvethernet 6b10000.ethernet: mgbe3_0 (HW ver: 31) created with 10 DMA channels
[    1.488570] nvethernet 6810000.ethernet mgbe0_0: Link is Up - 10Gbps/Full - flow control off
[    2.990042] nvethernet 6810000.ethernet mgbe0_0: must be stopped to change its MTU
[    2.990506] nvethernet 2310000.ethernet eqos_0: ether_get_wol: phydev is null check iface up status
[    2.992142] nvethernet 6b10000.ethernet mgbe3_0: ether_get_wol: phydev is null check iface up status
[    2.992216] nvethernet 6b10000.ethernet mgbe3_0: Macsec: Reduced MTU: 8966 Max: 16383
[    3.010067] nvethernet 6910000.ethernet mgbe1_0: ether_get_wol: phydev is null check iface up status
[    3.010146] nvethernet 6910000.ethernet mgbe1_0: Macsec: Reduced MTU: 8966 Max: 16383
[    3.018849] nvethernet 6a10000.ethernet mgbe2_0: ether_get_wol: phydev is null check iface up status
[    3.018926] nvethernet 6a10000.ethernet mgbe2_0: Macsec: Reduced MTU: 8966 Max: 16383
[    4.504565] nvethernet 6a10000.ethernet mgbe2_0: Link is Up - 5Gbps/Full - flow control off
[    4.574792] 8021q: adding VLAN 0 to HW filter on device mgbe0_0
[    4.574840] 8021q: adding VLAN 0 to HW filter on device mgbe2_0
[    4.805276] nvethernet 6b10000.ethernet mgbe3_0: Macsec: Reduced MTU: 8966 Max: 16383
[    4.835608] nvethernet 6a10000.ethernet mgbe2_0: must be stopped to change its MTU
[    4.836273] nvethernet 6910000.ethernet mgbe1_0: Macsec: Reduced MTU: 8966 Max: 16383
[    4.887586] nvethernet 6810000.ethernet mgbe0_0: must be stopped to change its MTU
[    4.958161] 8021q: adding VLAN 0 to HW filter on device mgbe1_0
[    5.087611] 8021q: adding VLAN 0 to HW filter on device eqos_0
[    5.140758] 8021q: adding VLAN 0 to HW filter on device mgbe3_0
[    5.141085] nvethernet 6b10000.ethernet mgbe3_0: Link is Up - 10Gbps/Full - flow control off
[    8.159993] IPv6: ADDRCONF(NETDEV_CHANGE): eqos_0: link becomes ready
[    8.160249] nvethernet 2310000.ethernet eqos_0: Link is Up - 100Mbps/Full - flow control off
[   11.104329] IPv6: ADDRCONF(NETDEV_CHANGE): mgbe1_0: link becomes ready
[   11.104808] nvethernet 6910000.ethernet mgbe1_0: Link is Up - 10Gbps/Full - flow control off

Possibly, mgbe0 interface is up before MTU is set causing this issue. I will check internally and update you. Please use WAR at Set MTU to MGBE0 - #3 by SivaRamaKrishnaNV at start up meanwhile.

Thanks for your information.
I look forward to hearing more from you.

How about the situation?

Dear @Yuhei.A.Kamei ,
We expect to bring down the interface and set MTU after each reboot.

Isn’t it the workaround solution?
I want to set MTU to mgbe0_0 automatically when each rebooting of orin.

As pointed earlier, mgbe0_0 interface is up before netplan sets the MTU. So the recommendation is to down the interface and set MTU.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.