The ethdev layer already updates dev->data->mtu on success.
After rte_eth_dev_configure(), dev_conf.rxmode.mtu becomes stale
and should not be modified by mtu_set.

Additionally, the original code assigned frame_size (MTU + overhead)
instead of MTU, confusing frame length with MTU.

Dimon Zhao (1):
  net/nbl: fix incorrect MTU stored in rxmode

 drivers/net/nbl/nbl_dev/nbl_dev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

-- 
2.34.1

Reply via email to