OSDN Git Service

net: ip6_gre: Split up ip6gre_changelink()
authorPetr Machata <petrm@mellanox.com>
Thu, 17 May 2018 14:36:45 +0000 (16:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 20:50:06 +0000 (16:50 -0400)
commitc8632fc30bb03aa0c3bd7bcce85355a10feb8149
treedc8f3e57cd0b386e87cd43d8116485297aabd055
parent7fa38a7c852ec99e3a7fc375eb2c21c50c2e46b8
net: ip6_gre: Split up ip6gre_changelink()

Extract from ip6gre_changelink() a reusable function
ip6gre_changelink_common(). This will allow introduction of
ERSPAN-specific _changelink() function with not a lot of code
duplication.

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