vti4: eliminated some duplicate code.
authorJeremy Sowden <jeremy@azazel.net>
Sat, 23 Mar 2019 14:43:02 +0000 (14:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:12:13 +0000 (08:12 +0200)
commit093fd7585f192861d8d38c5c111d3ee15f70a9bf
treefafb3551d690eab3e33e8841bc130e552dc2c8cb
parent84cff8831707f8d6c0d03b5dccc6fa884c87b31a
vti4: eliminated some duplicate code.

commit f981c57ffd2d7cf2dd4b6d6f8fcb3965df42f54c upstream.

The ipip tunnel introduced in commit dd9ee3444014 ("vti4: Fix a ipip
packet processing bug in 'IPCOMP' virtual tunnel") largely duplicated
the existing vti_input and vti_recv functions.  Refactored to
deduplicate the common code.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_vti.c