nexthop: Extract a helper for walking the next-hop tree
authorPetr Machata <petrm@nvidia.com>
Thu, 28 Jan 2021 12:49:22 +0000 (13:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:49:53 +0000 (20:49 -0800)
commitcbee18071e72b68d63b055655ac96ae97126776e
tree20e6b33ba4117242c2d923e2d4b682d8c486b45a
parenta6fbbaa64c3b0e744e7e421a13658a7441f5a9f3
nexthop: Extract a helper for walking the next-hop tree

Extract from rtm_dump_nexthop() a helper to walk the next hop tree. A
separate function for this will be reusable from the bucket dumper.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c