Skip to contentSkip to conversation

docs: xfrm: Fix the two aevent sysctl paths

PATCH In review Karl Mehltretter 3 participants 3 messages Sep 5 – Nov 19

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: xfrm: Fix the two aevent sysctl paths

The sysctls are registered as xfrm_aevent_etime and xfrm_aevent_rseqth under net.core (net/xfrm/xfrm_sysctl.c). The document calls them sysctl_xfrm_aevent_etime and sysctl_xfrm_aevent_rseqth; those names appear nowhere in the code but in a comment in net/xfrm/xfrm_user.c and were never the proc file names.

Use the proc file names.

Fixes b8a99520f78e ("[XFRM]: Add documentation for async events.")
Assisted-by LLM
---
 Documentation/networking/xfrm/xfrm_sync.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/xfrm/xfrm_sync.rst +2 -2
index dfc2ec0df380..27e3d151b11e 100644
@@ -120,12 +120,12 @@ in case they are not specified.
 
 the two sysctls/proc entries are:
 
-a) /proc/sys/net/core/sysctl_xfrm_aevent_etime
+a) /proc/sys/net/core/xfrm_aevent_etime
 
    Used to provide default values for the XFRMA_ETIMER_THRESH in incremental
    units of time of 100ms. The default is 10 (1 second)
 
-b) /proc/sys/net/core/sysctl_xfrm_aevent_rseqth
+b) /proc/sys/net/core/xfrm_aevent_rseqth
 
    Used to provide default values for XFRMA_REPLAY_THRESH parameter
    in incremental packet count. The default is two packets.
Signature · 1 line
2.53.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Karl Mehltretter

The sysctls are registered as xfrm_aevent_etime and xfrm_aevent_rseqth under net.core (net/xfrm/xfrm_sysctl.c). The document calls them sysctl_xfrm_aevent_etime and sysctl_xfrm_aevent_rseqth; those names appear nowhere in the code but in a comment in net/xfrm/xfrm_user.c and were never the proc file names.

Use the proc file names.

Fixes b8a99520f78e ("[XFRM]: Add documentation for async events.")
Assisted-by LLM

thanks.

Quoted 23 lines
---
 Documentation/networking/xfrm/xfrm_sync.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/xfrm/xfrm_sync.rst +2 -2
index dfc2ec0df380..27e3d151b11e 100644
@@ -120,12 +120,12 @@ in case they are not specified.
 
 the two sysctls/proc entries are:
 
-a) /proc/sys/net/core/sysctl_xfrm_aevent_etime
+a) /proc/sys/net/core/xfrm_aevent_etime
 
    Used to provide default values for the XFRMA_ETIMER_THRESH in incremental
    units of time of 100ms. The default is 10 (1 second)
 
-b) /proc/sys/net/core/sysctl_xfrm_aevent_rseqth
+b) /proc/sys/net/core/xfrm_aevent_rseqth
 
    Used to provide default values for XFRMA_REPLAY_THRESH parameter
    in incremental packet count. The default is two packets.
Signature · 1 line
~Randy
maintainer
#2 lore raw
In reply to Karl Mehltretter
Quoted 11 lines · Karl Mehltretter

The sysctls are registered as xfrm_aevent_etime and xfrm_aevent_rseqth under net.core (net/xfrm/xfrm_sysctl.c). The document calls them sysctl_xfrm_aevent_etime and sysctl_xfrm_aevent_rseqth; those names appear nowhere in the code but in a comment in net/xfrm/xfrm_user.c and were never the proc file names.

Use the proc file names.

Fixes b8a99520f78e ("[XFRM]: Add documentation for async events.")
Assisted-by LLM

Now applied to ipsec-next.

Thanks a lot and sorry for the delay!