]> 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)
commit87df3e605a7082b7bda66a2727951a33e7c4833c
tree5b44a0e3b07bf61d6b4868fe0d9129bde4dd4fa9
parent92995ed364db14f377abe882f7ebbeb8cba25f27
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: df0730556bbe ("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