[PATCH] net/gve: Update max_rx_pktlen to be based on MTU
Ferruh Yigit
ferruh.yigit at amd.com
Thu Oct 26 19:38:07 CEST 2023
On 10/16/2023 9:59 PM, Joshua Washington wrote:
> Before this patch, max_rx_pktlen was always set to UINT16_MAX. This, in
> conjunction with the MTU fix, causes problems with testpmd, as setting the
> packet length with the --max-pkt-len flag causes the MTU to be set
> higher than possible due to underflow.
>
> As an example, setting --max-pkt-len=1460 (the default MTU on Google
> Cloud VMs) causes testpmd to set the following:
> mtu = 1460 - eth_overhead,
>
> where eth_overhead = dev->max_rx_pktlen - dev->max_mtu = 65535 - 1460.
>
> Thus, mtu = 1460 - 65535 + 1460 = 2921 due to underflow.
>
> Signed-off-by: Joshua Washington <joshwash at google.com>
>
> Fixes: 030025b74202 ("net/gve: fix max MTU limit")
> Cc: joshwash at google.com
>
Cc: stable at dpdk.org
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list