[PATCH v2] ethdev: account for smaller MTU when setting default

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Wed Nov 8 16:07:30 CET 2023


On 11/8/23 09:05, Joshua Washington wrote:
> Currently, if not specified in the user configuration,
> rte_eth_dev_configure() sets the MTU of the device to RTE_EHTER_MTU.
> This value could potentially be larger than the MTU that the device
> supports. This change updates the configured MTU to be the minimum of
> the maximum suported MTU and the default DPDK MTU.
> 
> Fixes: 1bb4a528c4 ("ethdev: fix max Rx packet length")
> Signed-off-by: Joshua Washington <joshwash at google.com>
> Signed-off-by: Rushil Gupta <rushilg at google.com>

Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>




More information about the dev mailing list