Re: [dpdk-dev] [RFC] app/testpmd: fix MTU after device configure

2020-11-13 Thread Zhang, Qi Z
stantin > ; Olivier Matz ; > Lance Richardson > Subject: [dpdk-dev] [RFC] app/testpmd: fix MTU after device configure > > In 'rte_eth_dev_configure()', if 'DEV_RX_OFFLOAD_JUMBO_FRAME' is not set > the max frame size is limited to 'RTE_ETHER_MAX_LEN' (

Re: [dpdk-dev] [RFC] app/testpmd: fix MTU after device configure

2020-11-11 Thread Ferruh Yigit
On 11/5/2020 6:09 PM, Ferruh Yigit wrote: In 'rte_eth_dev_configure()', if 'DEV_RX_OFFLOAD_JUMBO_FRAME' is not set the max frame size is limited to 'RTE_ETHER_MAX_LEN' (1518). This is mistake because for the PMDs that has frame size bigger than "RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN" (18 bytes),

[dpdk-dev] [RFC] app/testpmd: fix MTU after device configure

2020-11-05 Thread Ferruh Yigit
In 'rte_eth_dev_configure()', if 'DEV_RX_OFFLOAD_JUMBO_FRAME' is not set the max frame size is limited to 'RTE_ETHER_MAX_LEN' (1518). This is mistake because for the PMDs that has frame size bigger than "RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN" (18 bytes), the MTU becomes less than 1500, causing a va