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)
commit56450ec6b7fc2824d6402fc3a60bff1a6fe32c04
tree8d9892184c670e8d2c90e8ba13cfb1f6c681e8f3
parentda230501f2c95a39eaa0856afd0122d35bda9e5d
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