Re: [dpdk-dev] [PATCH v1] app/testpmd: fix the overhead overflow issue

2020-11-05 Thread Thomas Monjalon
05/11/2020 15:31, Ferruh Yigit: > On 11/5/2020 9:51 AM, Steve Yang wrote: > > If "dev_info.max_mtu" isn't set by driver, the rte_ethdev will set > > default value "UINT16_MAX", that will cause the overhead value overflow. > > > > Add more strict condition to ensure the overhead valid. > > > > Fix

Re: [dpdk-dev] [PATCH v1] app/testpmd: fix the overhead overflow issue

2020-11-05 Thread Ferruh Yigit
On 11/5/2020 9:51 AM, Steve Yang wrote: If "dev_info.max_mtu" isn't set by driver, the rte_ethdev will set default value "UINT16_MAX", that will cause the overhead value overflow. Add more strict condition to ensure the overhead valid. Fixes: bed05536c8f8 ("app/testpmd: fix max Rx packet length

[dpdk-dev] [PATCH v1] app/testpmd: fix the overhead overflow issue

2020-11-05 Thread Steve Yang
If "dev_info.max_mtu" isn't set by driver, the rte_ethdev will set default value "UINT16_MAX", that will cause the overhead value overflow. Add more strict condition to ensure the overhead valid. Fixes: bed05536c8f8 ("app/testpmd: fix max Rx packet length for VLAN packets") Signed-off-by: Steve