linux/drivers/net/ethernet/marvell/mvpp2
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
..
Makefile net: mvpp2: ptp: add TAI support 2020-09-09 14:22:42 -07:00
mvpp2.h page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00
mvpp2_cls.c net: mvpp2: classifier flow fix fragmentation flags 2023-03-28 11:34:01 +02:00
mvpp2_cls.h net: marvell: Fixed two spellings,controling to controlling and oen to one 2021-01-12 19:02:01 -08:00
mvpp2_debugfs.c net: mvpp2: debugfs: remove redundant parameter check in three functions 2023-07-18 17:53:11 -07:00
mvpp2_main.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
mvpp2_prs.c net: mvpp2: parser fix PPPoE 2023-03-28 11:34:01 +02:00
mvpp2_prs.h net: mvpp2: Add parsing support for different IPv4 IHL values 2021-04-16 15:29:40 -07:00
mvpp2_tai.c net: mvpp2: ptp: add support for receive timestamping 2020-09-09 14:22:42 -07:00