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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 20:50:06 +0000 (16:50 -0400)
commita483373ead61e6079bc8ebe27e2dfdb2e3c1559f
tree5b44a0e3b07bf61d6b4868fe0d9129bde4dd4fa9
parent5691484df961aff897d824bcc26cd1a2aa036b5b
net: ip6_gre: Split up ip6gre_tnl_link_config()

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>
net/ipv6/ip6_gre.c