]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ipv4: ipmr: Split ipmr_queue_xmit() in two
authorPetr Machata <petrm@nvidia.com>
Mon, 16 Jun 2025 22:44:11 +0000 (00:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Jun 2025 01:18:45 +0000 (18:18 -0700)
commitb2e653bcff0f3eb43183393548f7142c176faa6d
tree44724af3e43eb32a39c03a40a43b030cb656088d
parent3b7bc938e0ada6a791103faae261dd2a770df86d
net: ipv4: ipmr: Split ipmr_queue_xmit() in two

Some of the work of ipmr_queue_xmit() is specific to IPMR forwarding, and
should not take place on the output path. In order to allow reuse of the
common parts, split the function into two: the ipmr_prepare_xmit() helper
that takes care of the common bits, and the ipmr_queue_fwd_xmit(), which
invokes the former and encapsulates the whole forwarding algorithm.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/4e8db165572a4f8bd29a723a801e854e9d20df4d.1750113335.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ipmr.c