linux/drivers/net/ethernet/altera
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
..
altera_msgdma.c
altera_msgdma.h
altera_msgdmahw.h
altera_sgdma.c net: ethernet: altera: cleanup comments 2022-02-16 20:33:04 -08:00
altera_sgdma.h
altera_sgdmahw.h
altera_tse_ethtool.c net: altera: tse: convert to phylink 2022-09-05 10:16:53 +01:00
altera_tse_main.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
altera_tse.h net: ethernet: Use device_get_match_data() 2023-10-13 10:04:53 +01:00
altera_utils.c
altera_utils.h net: altera: Replace kernel.h with the necessary inclusions 2022-06-07 11:13:43 +02:00
Kconfig net: altera-tse: make ALTERA_TSE depend on HAS_IOMEM 2023-08-18 10:18:51 -07:00
Makefile