diff options
| author | Petr Pavlu <[email protected]> | 2024-06-07 11:28:28 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-06-13 00:51:35 +0000 |
| commit | 14a20e5b4ad998793c5f43b0330d9e1388446cf3 (patch) | |
| tree | 83551b4724edbbcfe688e58c4c94264f8aa0a282 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | Merge tag 'nf-24-06-11' of git://git.kernel.org/pub/scm/linux/kernel/git/netf... (diff) | |
| download | kernel-14a20e5b4ad998793c5f43b0330d9e1388446cf3.tar.gz kernel-14a20e5b4ad998793c5f43b0330d9e1388446cf3.zip | |
net/ipv6: Fix the RT cache flush via sysctl using a previous delay
The net.ipv6.route.flush system parameter takes a value which specifies
a delay used during the flush operation for aging exception routes. The
written value is however not used in the currently requested flush and
instead utilized only in the next one.
A problem is that ipv6_sysctl_rtcache_flush() first reads the old value
of net->ipv6.sysctl.flush_delay into a local delay variable and then
calls proc_dointvec() which actually updates the sysctl based on the
provided input.
Fix the problem by switching the order of the two operations.
Fixes: 4990509f19e8 ("[NETNS][IPV6]: Make sysctls route per namespace.")
Signed-off-by: Petr Pavlu <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
