]> git.hungrycats.org Git - linux/commit
net: ip6_gre: Split up ip6gre_tnl_link_config()
authorPetr Machata <petrm@mellanox.com>
Thu, 17 May 2018 14:36:27 +0000 (16:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:46:03 +0000 (16:46 +0200)
commit6d1e3b8e7f76e3f56763f454e5be568d338cf193
tree0e78b1eadc9c8a00a45d3cf04b0242008ed82a16
parent003ad57484d9154db1ba93370a20c92d8356a61d
net: ip6_gre: Split up ip6gre_tnl_link_config()

[ Upstream commit a483373ead61e6079bc8ebe27e2dfdb2e3c1559f ]

The function ip6gre_tnl_link_config() is used for setting up
configuration of both ip6gretap and ip6erspan tunnels. Split the
function into the common part and the route-lookup part. The latter then
takes the calculated header length as an argument. This split will allow
the patches down the line to sneak in a custom header length computation
for the ERSPAN tunnel.

Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_gre.c