Re: [dpdk-dev] [PATCH v6 5/6] ethdev: unify MTU checks

2021-10-11 Thread Andrew Rybchenko
On 10/12/21 2:53 AM, Ferruh Yigit wrote: > Both 'rte_eth_dev_configure()' & 'rte_eth_dev_set_mtu()' sets MTU but > have slightly different checks. Like one checks min MTU against > RTE_ETHER_MIN_MTU and other RTE_ETHER_MIN_LEN. > > Checks moved into common function to unify the checks. Also this h

[dpdk-dev] [PATCH v6 5/6] ethdev: unify MTU checks

2021-10-11 Thread Ferruh Yigit
Both 'rte_eth_dev_configure()' & 'rte_eth_dev_set_mtu()' sets MTU but have slightly different checks. Like one checks min MTU against RTE_ETHER_MIN_MTU and other RTE_ETHER_MIN_LEN. Checks moved into common function to unify the checks. Also this has benefit to have common error logs. Default 'dev