1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/cavium/liquidio
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
..
cn23xx_pf_device.c net: liquidio: fix clang-specific W=1 build warnings 2024-01-12 17:57:09 -08:00
cn23xx_pf_device.h liquidio: enhanced ethtool --set-channels feature 2018-04-30 09:26:29 -04:00
cn23xx_pf_regs.h liquidio: CN23XX: delete repeated words, add missing words and fix typo in comment 2022-09-20 16:50:21 -07:00
cn23xx_vf_device.c net: liquidio: fix clang-specific W=1 build warnings 2024-01-12 17:57:09 -08:00
cn23xx_vf_device.h liquidio: moved wait_for_pending_requests to octeon_network.h 2017-08-14 22:21:39 -07:00
cn23xx_vf_regs.h liquidio: CN23XX: delete repeated words, add missing words and fix typo in comment 2022-09-20 16:50:21 -07:00
cn66xx_device.c net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
cn66xx_device.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
cn66xx_regs.h cavium/liquidio: Fix duplicate argument 2021-04-14 14:02:56 -07:00
cn68xx_device.c net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
cn68xx_device.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
cn68xx_regs.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
lio_core.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
lio_ethtool.c liquidio: replace deprecated strncpy/strcpy with strscpy 2023-10-09 19:38:41 -07:00
lio_main.c net: liquidio: replace deprecated strncpy with strscpy_pad 2023-10-09 19:38:47 -07:00
lio_vf_main.c net: liquidio: lio_vf_main: Remove unnecessary (void*) conversions 2023-05-10 11:33:03 +01:00
lio_vf_rep.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
lio_vf_rep.h liquidio: synchronize VF representor names with NIC firmware 2017-11-02 17:04:06 +09:00
liquidio_common.h net/liquidio: Delete non-working LIQUIDIO_PACKAGE check 2020-03-03 17:54:54 -08:00
liquidio_image.h liquidio: allow override of firmware present in flash 2017-09-25 20:25:39 -07:00
Makefile net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
octeon_config.h liquidio: remove obsolete functions and data structures 2018-08-29 20:07:42 -07:00
octeon_console.c liquidio: use strscpy() to instead of strncpy() 2022-12-12 10:00:55 +00:00
octeon_device.c cavium/liquidio: replace deprecated strncpy with strscpy 2023-10-09 19:43:14 -07:00
octeon_device.h liquidio: remove unused inline functions 2020-04-25 20:42:57 -07:00
octeon_droq.c net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
octeon_droq.h liquidio: Removed droq lock 2018-09-11 23:37:06 -07:00
octeon_iq.h liquidio: Added delayed work for periodically updating the link statistics. 2018-09-03 19:08:07 -07:00
octeon_mailbox.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
octeon_mailbox.h net: liquidio: fix clang-specific W=1 build warnings 2024-01-12 17:57:09 -08:00
octeon_main.h liquidio: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
octeon_mem_ops.c net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
octeon_mem_ops.h liquidio: stop using huge static buffer, save 4096k in .data 2017-06-22 11:03:00 -04:00
octeon_network.h liquidio: use list_empty_careful in lio_list_delete_head 2020-06-28 21:46:33 -07:00
octeon_nic.c net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
octeon_nic.h liquidio: change octnic_ctrl_pkt to do synchronous soft commands 2018-08-29 20:07:41 -07:00
request_manager.c net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
response_manager.c net: liquidio: fix mixed module-builtin object 2023-06-07 12:22:44 +01:00
response_manager.h liquidio: improve soft command handling 2018-08-29 20:07:41 -07:00