]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 20:50:06 +0000 (16:50 -0400)
commitbd864b283f78df5a2915d39242149e3de3adfff2
tree5b44a0e3b07bf61d6b4868fe0d9129bde4dd4fa9
parentebdc1ebd4d27a9ae2111a8d34aefa7e13b354bf5
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: 318c892820e0 ("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