]> git.baikalelectronics.ru Git - kernel.git/commit
nexthop: Extract dump filtering parameters into a single structure
authorPetr Machata <petrm@nvidia.com>
Thu, 28 Jan 2021 12:49:19 +0000 (13:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:49:52 +0000 (20:49 -0800)
commitd381aeed368f7693114d69d9d3d759db49d4bcee
tree8d9892184c670e8d2c90e8ba13cfb1f6c681e8f3
parente5489abeb6f51440f62b14a08ebc8c7a40cd9142
nexthop: Extract dump filtering parameters into a single structure

Requests to dump nexthops have many attributes in common with those that
requests to dump buckets of resilient NH groups will have. In order to make
reuse of this code simpler, convert the code to use a single structure with
filtering configuration instead of passing around the parameters one by
one.

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