ip6_gre: Factor out common ip6gre tunnel match into helper
authorYue Haibing <yuehaibing@huawei.com>
Sat, 19 Jul 2025 08:15:51 +0000 (16:15 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Jul 2025 10:15:26 +0000 (12:15 +0200)
commitdb8a5149fa360da9ba899484bbafd976ac885e5d
tree804bbd6be3a47abd92e52baaa13389c6571c278e
parentcdb794002d9059bf82acba6b68a7324db4451494
ip6_gre: Factor out common ip6gre tunnel match into helper

Extract common ip6gre tunnel match from ip6gre_tunnel_lookup() into new
helper function ip6gre_tunnel_match() to reduce code duplication.

No functional change intended.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250719081551.963670-1-yuehaibing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv6/ip6_gre.c