net: ipv6: ip6mr: Split ip6mr_forward2() in two
authorPetr Machata <petrm@nvidia.com>
Mon, 16 Jun 2025 22:44:17 +0000 (00:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Jun 2025 01:18:46 +0000 (18:18 -0700)
commit1b02f4475d29c6e2c4b7f1bae74149b9c1369791
tree2ec87b545aee450b2e45f6c19641459d1f65ec59
parent094f39d5e84d6c48bb38ded6b30f68b12cb8145b
net: ipv6: ip6mr: Split ip6mr_forward2() in two

Some of the work of ip6mr_forward2() is specific to IPMR forwarding, and
should not take place on the output path. In order to allow reuse of the
common parts, extract out of the function a helper,
ip6mr_prepare_forward().

Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/8932bd5c0fbe3f662b158803b8509604fa7bc113.1750113335.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6mr.c