mirror-linux/drivers/net/ethernet/sfc/siena
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
..
Kconfig
Makefile
bitfield.h
efx.c sfc-siena: Implement ndo_hwtstamp_(get|set) 2023-12-05 07:45:43 -08:00
efx.h
efx_channels.c
efx_channels.h
efx_common.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
efx_common.h
enum.h
ethtool.c net: ethtool: get rid of get/set_rxfh_context functions 2023-12-13 22:07:16 -08:00
ethtool_common.c net: ethtool: get rid of get/set_rxfh_context functions 2023-12-13 22:07:16 -08:00
ethtool_common.h net: ethtool: get rid of get/set_rxfh_context functions 2023-12-13 22:07:16 -08:00
farch.c
farch_regs.h
filter.h
io.h
mcdi.c
mcdi.h
mcdi_mon.c
mcdi_pcol.h
mcdi_port.c
mcdi_port.h
mcdi_port_common.c
mcdi_port_common.h
mtd.c
net_driver.h sfc-siena: Implement ndo_hwtstamp_(get|set) 2023-12-05 07:45:43 -08:00
nic.c
nic.h
nic_common.h
ptp.c sfc-siena: Implement ndo_hwtstamp_(get|set) 2023-12-05 07:45:43 -08:00
ptp.h sfc-siena: Implement ndo_hwtstamp_(get|set) 2023-12-05 07:45:43 -08:00
rx.c
rx_common.c net: introduce include/net/rps.h 2024-03-07 21:12:43 -08:00
rx_common.h
selftest.c
selftest.h
siena.c sfc-siena: Implement ndo_hwtstamp_(get|set) 2023-12-05 07:45:43 -08:00
siena_sriov.c
siena_sriov.h
sriov.h
tx.c
tx.h
tx_common.c net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
tx_common.h
vfdi.h
workarounds.h