seg6: factor out End lookup nexthop processing to a dedicated function
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Wed, 15 Feb 2023 13:46:57 +0000 (14:46 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Feb 2023 12:18:06 +0000 (13:18 +0100)
commit525c65ff5696f7ccd8335edde1d9964420707910
treeda5adc8102fb801e502f732044ab6d57a32c5731
parentf5b12be34249e8fd0f866927bc978f9e08fc9770
seg6: factor out End lookup nexthop processing to a dedicated function

The End nexthop lookup/input operations are moved into a new helper
function named input_action_end_finish(). This avoids duplicating the
code needed to compute the nexthop in the different flavors of the End
behavior.

Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv6/seg6_local.c