From 45b7debe136e8a655c06bd9433bc753a4363410d Mon Sep 17 00:00:00 2001 From: Zhe Weng Date: Thu, 22 Dec 2022 11:17:55 +0800 Subject: [PATCH] doc/nat: update config options Signed-off-by: Zhe Weng --- Documentation/reference/os/nat.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/reference/os/nat.rst b/Documentation/reference/os/nat.rst index 7804ca9ed82..1a524ca5360 100644 --- a/Documentation/reference/os/nat.rst +++ b/Documentation/reference/os/nat.rst @@ -46,6 +46,8 @@ Configuration Options ``CONFIG_NET_NAT`` Enable or disable Network Address Translation (NAT) function. Depends on ``CONFIG_NET_IPFORWARD``. +``CONFIG_NET_NAT_HASH_BITS`` + The bits of the hashtable of NAT entries, hashtable has (1 << bits) buckets. ``CONFIG_NET_NAT_TCP_EXPIRE_SEC`` The expiration time for idle TCP entry in NAT. The default value 86400 is suggested by RFC2663, Section 2.6, @@ -55,6 +57,14 @@ Configuration Options The expiration time for idle UDP entry in NAT. ``CONFIG_NET_NAT_ICMP_EXPIRE_SEC`` The expiration time for idle ICMP entry in NAT. +``CONFIG_NET_NAT_ENTRY_RECLAIM_SEC`` + The time to auto reclaim all expired NAT entries. A value of zero will + disable auto reclaiming. + Expired entries will be automatically reclaimed when matching + inbound/outbound entries, so this config does not have significant + impact when NAT is normally used, but very useful when the hashtable + is big and there are only a few connections using NAT (which will + only trigger reclaiming on a few chains in hashtable). Usage =====