opened
andriymoroz-mlnx
username_0
portsyncd synchronizes net device settings with the PORT_TABLE
Added code to set MTU to hardware on PORT_TABLE update
Add MTU set on port (issue #77)
issue
created
andriymoroz-mlnx
username_0
```
root@arc-switch1028:/home/admin# ifconfig Ethernet0
Ethernet0 Link encap:Ethernet  HWaddr 24:8a:07:05:31:40
          inet addr:10.0.0.0  Bcast:255.255.255.255  Mask:255.255.255.254
          inet6 addr: fe80::268a:7ff:fe05:3140/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:9216  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1740 (1.6 KiB)

root@arc-switch1028:/home/admin# docker exec -it syncd sx_api_ports_dump.py
[+] Redirecting stderr to: /tmp/python_err_log.txt
[+] opening sdk
May 18 17:03:06 INFO    LOG: Initializing SX log with STDOUT as output file.
sx_api_open handle:0x1c05d44 , rc 0
sx_api_port_device_get port_cnt:33 , rc 0, port_list :
======================================================================================
|  log_port|local_port|label_port|       mtu| admin_s|  oper_s|       module_s|  pvid|
======================================================================================
|   0x10100|         1|        17|      9238|      UP|    DOWN|      UNPLUGGED|     1|
|   0x10300|         3|        18|      9238|      UP|    DOWN|      UNPLUGGED|     1|
|   0x10500|         5|        19|      9238|      UP|    DOWN|      UNPLUGGED|     1|
|   0x10700|         7|        20|      9238|      UP|    DOWN|      UNPLUGGED|     1|
|   0x10900|         9|        21|      9238|      UP|    DOWN|      UNPLUGGED|     1|
|   0x10b00|        11|        22|      9238|      UP|    DOWN|      UNPLUGGED|     1|
|   0x10d00|        13|        23|      9238|      UP|    DOWN|      UNPLUGGED|     1|
|   0x10f00|        15|        24|      9238|      UP|    DOWN|      UNPLUGGED|     1|
```
`ping 10.0.0.0 -s 8888`
captured on switch (request comes fragmented but reply is jumbo):
```
17:15:57.062343 IP 10.0.0.1 > 10.0.0.0: ICMP echo request, id 39690, seq 9, length 1480
17:15:57.062357 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:57.062362 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:57.062368 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:57.062430 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:57.062437 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:57.062442 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:57.062534 IP 10.0.0.0 > 10.0.0.1: ICMP echo reply, id 39690, seq 9, length 8896
17:15:58.062464 IP 10.0.0.1 > 10.0.0.0: ICMP echo request, id 39690, seq 10, length 1480
17:15:58.062475 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:58.062481 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:58.062486 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:58.062491 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:58.062496 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:58.062501 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:58.062637 IP 10.0.0.0 > 10.0.0.1: ICMP echo reply, id 39690, seq 10, length 8896
17:15:59.062372 IP 10.0.0.1 > 10.0.0.0: ICMP echo request, id 39690, seq 11, length 1480
17:15:59.062383 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:59.062389 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:59.062395 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:59.062401 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:59.062487 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:59.062493 IP 10.0.0.1 > 10.0.0.0: icmp
17:15:59.062585 IP 10.0.0.0 > 10.0.0.1: ICMP echo reply, id 39690, seq 11, length 8896
```
comment
created
stcheng
username_1
verified. thanks.
comment