linux/drivers/net/ethernet/intel/iavf
Eric Dumazet 1eb2cded45 net: annotate writes on dev->mtu from ndo_change_mtu()
Simon reported that ndo_change_mtu() methods were never
updated to use WRITE_ONCE(dev->mtu, new_mtu) as hinted
in commit 501a90c945 ("inet: protect against too small
mtu values.")

We read dev->mtu without holding RTNL in many places,
with READ_ONCE() annotations.

It is time to take care of ndo_change_mtu() methods
to use corresponding WRITE_ONCE()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Simon Horman <horms@kernel.org>
Closes: https://lore.kernel.org/netdev/20240505144608.GB67882@kernel.org/
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://lore.kernel.org/r/20240506102812.3025432-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-05-07 16:19:14 -07:00
..
iavf.h iavf: kill "legacy-rx" for good 2024-04-24 11:06:25 -07:00
iavf_adminq.c iavf: Remove queue tracking fields from iavf_adminq_ring 2023-11-27 09:34:04 -08:00
iavf_adminq.h iavf: Remove queue tracking fields from iavf_adminq_ring 2023-11-27 09:34:04 -08:00
iavf_adminq_cmd.h
iavf_adv_rss.c iavf: enable symmetric-xor RSS for Toeplitz hash function 2023-12-13 22:07:17 -08:00
iavf_adv_rss.h iavf: enable symmetric-xor RSS for Toeplitz hash function 2023-12-13 22:07:17 -08:00
iavf_alloc.h iavf: remove some unused functions and pointless wrappers 2023-06-22 09:26:55 -07:00
iavf_common.c net: intel: introduce {, Intel} Ethernet common library 2024-04-24 11:06:25 -07:00
iavf_devids.h
iavf_ethtool.c iavf: kill "legacy-rx" for good 2024-04-24 11:06:25 -07:00
iavf_fdir.c iavf: field prep conversion 2023-12-18 11:16:15 -08:00
iavf_fdir.h iavf: Introduce new state machines for flow director 2023-12-12 11:20:40 -08:00
iavf_main.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
iavf_osdep.h iavf: remove some unused functions and pointless wrappers 2023-06-22 09:26:55 -07:00
iavf_prototype.h net: intel: introduce {, Intel} Ethernet common library 2024-04-24 11:06:25 -07:00
iavf_register.h iavf: remove mask from iavf_irq_enable_queues() 2023-06-10 00:09:54 -07:00
iavf_status.h
iavf_trace.h
iavf_txrx.c iavf: switch to Page Pool 2024-04-24 11:06:26 -07:00
iavf_txrx.h iavf: switch to Page Pool 2024-04-24 11:06:26 -07:00
iavf_type.h iavf: drop page splitting and recycling 2024-04-24 11:06:25 -07:00
iavf_virtchnl.c iavf: switch to Page Pool 2024-04-24 11:06:26 -07:00
Makefile iavf: delete the iavf client interface 2023-10-27 15:35:49 -07:00