On 3/8/2023 2:33 AM, Chaoyong He wrote: > From: Peng Zhang <[email protected]> > > If rte_eth_dev_set_mtu() is called before rte_eth_rx_queue_setup() the > NFP driver setup fails. This is because the default values evaluated > when setting the MTU are initialized in the rte_eth_rx_queue_setup() > code path. Fix this by instead initializing the MTU default values in > the device initialization, in nfp_net_init() and the check also is > conducted in nfp_net_start(), so it doesn't influence the result. > > This was found by using DPDK with OVS. > > Fixes: dbad6f64f921 ("net/nfp: fix internal buffer size and MTU check") > Cc: [email protected] > > Signed-off-by: Peng Zhang <[email protected]> > Reviewed-by: Chaoyong He <[email protected]> > Reviewed-by: Niklas Söderlund <[email protected]>
Applied to dpdk-next-net/main, thanks.

