Re: [PATCH net-next 08/12] nexthop: Extract a common helper for parsing dump attributes

2021-01-28 Thread David Ahern
On 1/28/21 5:49 AM, Petr Machata wrote: > Requests to dump nexthops have many attributes in common with those that > requests to dump buckets of resilient NH groups will have. However, they > have different policies. To allow reuse of this code, extract a > policy-agnostic wrapper out of nh_valid_d

[PATCH net-next 08/12] nexthop: Extract a common helper for parsing dump attributes

2021-01-28 Thread Petr Machata
Requests to dump nexthops have many attributes in common with those that requests to dump buckets of resilient NH groups will have. However, they have different policies. To allow reuse of this code, extract a policy-agnostic wrapper out of nh_valid_dump_req(), and convert this function into a thin