]> 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)
commit032602c7d4480a2d3307b5b3e56935b24c26471c
tree8d9892184c670e8d2c90e8ba13cfb1f6c681e8f3
parent47a0c2480d170e75fa42533961bcbfdde774f91a
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