]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: nexthop: add a helper which retrieves and prints cached nh entry
authorNikolay Aleksandrov <nikolay@nvidia.com>
Thu, 30 Sep 2021 11:38:42 +0000 (14:38 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 4 Oct 2021 00:24:51 +0000 (18:24 -0600)
commitcb3d18c29e20fa95bd98a614cc5a86f9a1336115
tree541acf3e51c0e1ad939da348b23bcb7e1eb31ffa
parent60a97030328805101c469f05cad12c0b5b2b6a82
ip: nexthop: add a helper which retrieves and prints cached nh entry

Add a helper which looks for a nexthop in the cache and if not found
reads the entry from the kernel and caches it. Finally the entry is
printed.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipnexthop.c
ip/nh_common.h