OSDN Git Service

nexthop: Add netlink handlers for bucket dump
authorPetr Machata <petrm@nvidia.com>
Thu, 11 Mar 2021 18:03:22 +0000 (19:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:13:00 +0000 (16:13 -0800)
commit8a1bbabb034d5cf6a4788acb4fc6ce0a1dfd6177
tree55d61081faa2e95182a98eb140ed114af250554f
parenta2601e2b1e7ecd3831f2fbb1ad43bbdb2918e2e6
nexthop: Add netlink handlers for bucket dump

Add a dump handler for resilient next hop buckets. When next-hop group ID
is given, it walks buckets of that group, otherwise it walks buckets of all
groups. It then dumps the buckets whose next hops match the given filtering
criteria.

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: David S. Miller <davem@davemloft.net>
net/ipv4/nexthop.c