Re: [dpdk-dev] [PATCH v3 1/3] ethdev: fix MTU doesn't update when jumbo frame disabled

2021-01-25 Thread Ferruh Yigit
:* Yang, SteveX ; dev@dpdk.org *Cc:* Lu, Wenzhuo ; Li, Xiaoyun ; Iremonger, Bernard ; tho...@monjalon.net; Yigit, Ferruh ; andrew.rybche...@oktetlabs.ru; Yang, Qiming ; ouli...@huawei.com; huangda...@huawei.com *Subject:* Re: [dpdk-dev] [PATCH v3 1/3] ethdev: fix MTU doesn't update when j

Re: [dpdk-dev] [PATCH v3 1/3] ethdev: fix MTU doesn't update when jumbo frame disabled

2021-01-24 Thread Huisong Li
Hi Steve, In the current modification, the MTU is updated based on 'max_rx_pkt_len' regardless of whether jumbo frame is enabled. Now, MTU is correct when jumbo frmae is disabled. However, when jumbo frame is enabled, the MTU value may be inconsistent with the definition of the enabled jumb

[dpdk-dev] [PATCH v3 1/3] ethdev: fix MTU doesn't update when jumbo frame disabled

2021-01-22 Thread Steve Yang
The MTU value should be updated to 'max_rx_pkt_len - overhead' no matter if the JUMBO FRAME offload enabled. If not update this MTU, use will get the wrong MTU info via some command. E.g.: 'show port info all' in testpmd tool. Actually, the 'max_rx_pkt_len' has been used for other purposes in many