On 10/25/2021 7:06 PM, Ajit Khaparde wrote:
On Sun, Oct 24, 2021 at 9:42 AM Andrew Rybchenko <[email protected]> wrote:There is no point to do rte_eth_dev_mtu_set() before configure since set MTU value is overwritten on configure anyway. So, setting of MTU before configure is rejected now on ethdev level. If testpmd is going to do configure (e.g. just after testpmd start with disabled devices start up or any configuration changes in stopped state which require reconfigure), just save requested MTU in device config to be applied on reconfigure. Fixes: 1bb4a528c41f ("ethdev: fix max Rx packet length") Fixes: be0433cf953c ("ethdev: forbid MTU set before device configure") Signed-off-by: Andrew Rybchenko <[email protected]>Acked-by: Ajit Khaparde <[email protected]>
Reviewed-by: Ferruh Yigit <[email protected]> Applied to dpdk-next-net/main, thanks.

