Skip to contentSkip to conversation

update ip-sysctl.txt documentation

PATCH In review Ani Sinha 2 participants 3 messages Jan 6, 2015 – Jan 7, 2015

Subsystems (3)
lore
Share & tools
lore

Ani Sinha

author
#0 lore raw

PATCH 1/1 update ip-sysctl.txt documentation

Update documentation to reflect the fact that /proc/sys/net/ipv4/route/max_size is no longer used for ipv4.

---
 Documentation/networking/ip-sysctl.txt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Documentation/networking/ip-sysctl.txt +4 -2
index 9bffdfc..2a28261 100644
@@ -64,8 +64,10 @@ fwmark_reflect - BOOLEAN
 	Default: 0
 
 route/max_size - INTEGER
-	Maximum number of routes allowed in the kernel.  Increase
-	this when using large numbers of interfaces and/or routes.
+	Post linux kernel 3.6, this is deprecated for ipv4 as route cache is no
+	longer used. For ipv6, this is used to limit the maximum number of ipv6
+	routes allowed in the kernel.  Increase this when using large numbers of
+	interfaces and/or routes.
 
 neigh/default/gc_thresh1 - INTEGER
 	Minimum number of entries to keep.  Garbage collector will not
Signature · 1 line
1.7.4.4
#1 lore raw

From: Ani Sinha

Quoted 13 lines

Update documentation to reflect the fact that /proc/sys/net/ipv4/route/max_size is no longer used for ipv4.

---
 Documentation/networking/ip-sysctl.txt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Documentation/networking/ip-sysctl.txt +0 -0
index 9bffdfc..2a28261 100644

Documentation/networking/ip-sysctl.txt fwmark_reflect - BOOLEAN · line 70

Quoted 9 lines
Documentation/networking/ip-sysctl.txt +4 -2
@@ -64,8 +64,10 @@ fwmark_reflect - BOOLEAN
 	Default: 0
 
 route/max_size - INTEGER
-	Maximum number of routes allowed in the kernel.  Increase
-	this when using large numbers of interfaces and/or routes.
+	Post linux kernel 3.6, this is deprecated for ipv4 as route cache is no
+	longer used. For ipv6, this is used to limit the maximum number of ipv6
+	routes allowed in the kernel.  Increase this when using large numbers of
+	interfaces and/or routes.

Now imagine you are reading ip-sysctl.txt, the new text is all wrong. Something like:
Limit on the size of the ip route caches.
Ignored for ipv4 after kernel 3.6 because the ipv4 route cache was removed. Increase this when using large numbers of interfaces and/or routes.
would read better.

David

author
#2 lore raw
Quoted 16 lines · David Laight

From: Ani Sinha

Quoted 15 lines

Update documentation to reflect the fact that /proc/sys/net/ipv4/route/max_size is no longer used for ipv4.

---
 Documentation/networking/ip-sysctl.txt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Documentation/networking/ip-sysctl.txt +0 -0
index 9bffdfc..2a28261 100644
@@ -64,8 +64,10 @@ fwmark_reflect - BOOLEAN
      Default: 0
 
Quoted 14 lines

Documentation/networking/ip-sysctl.txt fwmark_reflect - BOOLEAN · line 70

Quoted 7 lines
Documentation/networking/ip-sysctl.txt +4 -2
 route/max_size - INTEGER
-     Maximum number of routes allowed in the kernel.  Increase
-     this when using large numbers of interfaces and/or routes.
+     Post linux kernel 3.6, this is deprecated for ipv4 as route cache is no
+     longer used. For ipv6, this is used to limit the maximum number of ipv6
+     routes allowed in the kernel.  Increase this when using large numbers of
+     interfaces and/or routes.

Now imagine you are reading ip-sysctl.txt, the new text is all wrong. Something like:
Limit on the size of the ip route caches.
Ignored for ipv4 after kernel 3.6 because the ipv4 route cache was removed. Increase this when using large numbers of interfaces and/or routes.
would read better.

Ok please take a look at my patch v2.