public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2] docs: net: document neigh gc_stale_time sysctl
@ 2026-02-23 10:12 Gabriel Goller
  2026-02-25  1:18 ` Jakub Kicinski
  2026-02-25  1:50 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: Gabriel Goller @ 2026-02-23 10:12 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, Jonathan Corbet, Shuah Khan
  Cc: netdev, linux-doc, linux-kernel

Add missing documentation for a neighbor table garbage collector sysctl
parameter in ip-sysctl.rst:

neigh/default/gc_stale_time: controls how long an unused neighbor entry
is kept before becoming eligible for garbage collection (default: 60
seconds)

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---

Changelog:
v1:
 * removed documentation for gc_interval, as that sysctl is not used
   anymore and doesn't do anything.
 * mention gc_stale_time only being used when we have more than
   gc_thresh1 neighbors.

 Documentation/networking/ip-sysctl.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst
index 28c7e4f5ecf9..85fda3759534 100644
--- a/Documentation/networking/ip-sysctl.rst
+++ b/Documentation/networking/ip-sysctl.rst
@@ -202,6 +202,17 @@ neigh/default/gc_thresh3 - INTEGER
 
 	Default: 1024
 
+neigh/default/gc_stale_time - INTEGER
+	Determines how long a neighbor entry can remain unused before it is
+	considered stale and eligible for garbage collection. Entries that have
+	not been used for longer than this time will be removed by the garbage
+	collector, unless they have active references, are marked as PERMANENT,
+	or carry the NTF_EXT_LEARNED or NTF_EXT_VALIDATED flag. Stale entries
+	are only removed by the periodic GC when there are at least gc_thresh1
+	neighbors in the table.
+
+	Default: 60 seconds
+
 neigh/default/unres_qlen_bytes - INTEGER
 	The maximum number of bytes which may be used by packets
 	queued for each	unresolved address by other network layers.
-- 
2.47.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v2] docs: net: document neigh gc_stale_time sysctl
  2026-02-23 10:12 [PATCH net-next v2] docs: net: document neigh gc_stale_time sysctl Gabriel Goller
@ 2026-02-25  1:18 ` Jakub Kicinski
  2026-02-25 10:00   ` Gabriel Goller
  2026-02-25  1:50 ` patchwork-bot+netdevbpf
  1 sibling, 1 reply; 4+ messages in thread
From: Jakub Kicinski @ 2026-02-25  1:18 UTC (permalink / raw)
  To: Gabriel Goller
  Cc: David S. Miller, Eric Dumazet, Paolo Abeni, Simon Horman,
	Jonathan Corbet, Shuah Khan, netdev, linux-doc, linux-kernel

On Mon, 23 Feb 2026 11:12:54 +0100 Gabriel Goller wrote:
>  * removed documentation for gc_interval, as that sysctl is not used
>    anymore and doesn't do anything.

Thanks! FWIW we can probably also document gc_interval, since it exists
(in a separate patch). Just make sure the doc says it's unused /
deprecated and since when if it was ever used?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v2] docs: net: document neigh gc_stale_time sysctl
  2026-02-23 10:12 [PATCH net-next v2] docs: net: document neigh gc_stale_time sysctl Gabriel Goller
  2026-02-25  1:18 ` Jakub Kicinski
@ 2026-02-25  1:50 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-02-25  1:50 UTC (permalink / raw)
  To: Gabriel Goller
  Cc: davem, edumazet, kuba, pabeni, horms, corbet, skhan, netdev,
	linux-doc, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 23 Feb 2026 11:12:54 +0100 you wrote:
> Add missing documentation for a neighbor table garbage collector sysctl
> parameter in ip-sysctl.rst:
> 
> neigh/default/gc_stale_time: controls how long an unused neighbor entry
> is kept before becoming eligible for garbage collection (default: 60
> seconds)
> 
> [...]

Here is the summary with links:
  - [net-next,v2] docs: net: document neigh gc_stale_time sysctl
    https://git.kernel.org/netdev/net-next/c/3197cce4d48c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v2] docs: net: document neigh gc_stale_time sysctl
  2026-02-25  1:18 ` Jakub Kicinski
@ 2026-02-25 10:00   ` Gabriel Goller
  0 siblings, 0 replies; 4+ messages in thread
From: Gabriel Goller @ 2026-02-25 10:00 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: David S. Miller, Eric Dumazet, Paolo Abeni, Simon Horman,
	Jonathan Corbet, Shuah Khan, netdev, linux-doc, linux-kernel

On 24.02.2026 17:18, Jakub Kicinski wrote:
> On Mon, 23 Feb 2026 11:12:54 +0100 Gabriel Goller wrote:
> >  * removed documentation for gc_interval, as that sysctl is not used
> >    anymore and doesn't do anything.
> 
> Thanks! FWIW we can probably also document gc_interval, since it exists
> (in a separate patch). Just make sure the doc says it's unused /
> deprecated and since when if it was ever used?

Sounds good!
 
Patch available here:
https://lore.kernel.org/netdev/20260225095822.44050-1-g.goller@proxmox.com/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-25 10:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 10:12 [PATCH net-next v2] docs: net: document neigh gc_stale_time sysctl Gabriel Goller
2026-02-25  1:18 ` Jakub Kicinski
2026-02-25 10:00   ` Gabriel Goller
2026-02-25  1:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox