]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1910531aef269ebfa0f7e1f2b6a7d603349a60d7
tree55d61081faa2e95182a98eb140ed114af250554f
parent9f3f6e2659758bab97630333823e78ef893d1fd7
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