aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2018-06-05 21:24:59 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2018-06-05 21:24:59 +0000
commitb941bc1d6eddacf06eb515faa5d894f2ee2a9011 (patch)
treea3940cc103bd4939c1f05545ab4a31b5f585ef86 /share
parent73ae9758a178dfa68ef27f654a47f6fdad824c06 (diff)
downloadsrc-b941bc1d6eddacf06eb515faa5d894f2ee2a9011.tar.gz
src-b941bc1d6eddacf06eb515faa5d894f2ee2a9011.zip
Rework if_gif(4) to use new encap_lookup_t method to speedup lookup
of needed interface when many gif interfaces are present. Remove rmlock from gif_softc, use epoch(9) and CK_LIST instead. Move more AF-related code into AF-related locations. Use hash table to speedup lookup of needed softc. Interfaces with GIF_IGNORE_SOURCE flag are stored in plain CK_LIST. Sysctl net.link.gif.parallel_tunnels is removed. The removal was planed 16 years ago, and actually it could work only for outbound direction. Each protocol, that can be handled by if_gif(4) interface is registered by separate encap handler, this helps avoid invoking the handler for unrelated protocols (GRE, PIM, etc.). This change allows dramatically improve performance when many gif(4) interfaces are used. Sponsored by: Yandex LLC
Notes
Notes: svn path=/head/; revision=334673
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/gif.410
1 files changed, 1 insertions, 9 deletions
diff --git a/share/man/man4/gif.4 b/share/man/man4/gif.4
index 76b7976e7ff9..752282bcf830 100644
--- a/share/man/man4/gif.4
+++ b/share/man/man4/gif.4
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 10, 2015
+.Dd June 5, 2018
.Dt GIF 4
.Os
.Sh NAME
@@ -169,14 +169,6 @@ This behavior may be modified at runtime by setting the
variable
.Va net.link.gif.max_nesting
to the desired level of nesting.
-Additionally,
-.Nm
-tunnels are restricted to one per pair of end points.
-Parallel tunnels may be enabled by setting the
-.Xr sysctl 8
-variable
-.Va net.link.gif.parallel_tunnels
-to 1.
.Sh SEE ALSO
.Xr gre 4 ,
.Xr inet 4 ,