linux/drivers/net/vmxnet3
Ronak Doshi a6ddbf9ae7 vmxnet3: update MTU after device quiesce
commit 43f0999af0 upstream.

Currently, when device mtu is updated, vmxnet3 updates netdev mtu, quiesces
the device and then reactivates it for the ESXi to know about the new mtu.
So, technically the OS stack can start using the new mtu before ESXi knows
about the new mtu.

This can lead to issues for TSO packets which use mss as per the new mtu
configured. This patch fixes this issue by moving the mtu write after
device quiesce.

Cc: stable@vger.kernel.org
Fixes: d1a890fa37 ("net: VMware virtual Ethernet NIC driver: vmxnet3")
Signed-off-by: Ronak Doshi <ronak.doshi@broadcom.com>
Acked-by: Guolin Yang <guolin.yang@broadcom.com>
Changes v1-> v2:
  Moved MTU write after destroy of rx rings
Link: https://patch.msgid.link/20250515190457.8597-1-ronak.doshi@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-05-29 11:03:21 +02:00
..
Makefile vmxnet3: prepare for version 9 changes 2024-06-05 15:56:47 -07:00
upt1_defs.h vmxnet3: prepare for version 7 changes 2022-06-09 12:42:00 +02:00
vmxnet3_defs.h vmxnet3: add command to allow disabling of offloads 2024-06-05 15:56:48 -07:00
vmxnet3_drv.c vmxnet3: update MTU after device quiesce 2025-05-29 11:03:21 +02:00
vmxnet3_ethtool.c vmxnet3: prepare for version 9 changes 2024-06-05 15:56:47 -07:00
vmxnet3_int.h vmxnet3: update to version 9 2024-06-05 15:56:48 -07:00
vmxnet3_xdp.c vmxnet3: Fix malformed packet sizing in vmxnet3_process_xdp 2025-05-02 07:59:30 +02:00
vmxnet3_xdp.h vmxnet3: Add XDP support. 2023-08-14 08:03:52 +01:00