OSDN Git Service

net: ip6_gre: Split up ip6gre_tnl_change()
authorPetr Machata <petrm@mellanox.com>
Thu, 17 May 2018 14:36:33 +0000 (16:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 20:50:06 +0000 (16:50 -0400)
commita6465350ef495f5cbd76a3e505d25a01d648477e
tree0413bf24c063f5b4e758191b3dc7ade7cad08f17
parenta483373ead61e6079bc8ebe27e2dfdb2e3c1559f
net: ip6_gre: Split up ip6gre_tnl_change()

Split a reusable function ip6gre_tnl_copy_tnl_parm() from
ip6gre_tnl_change(). This will allow ERSPAN-specific code to
reuse the common parts while customizing the behavior for ERSPAN.

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