Re: [PATCH net-next 2/3] nexthop: Use a dedicated policy for nh_valid_dump_req()

From
David Ahern <hidden>
Date
2021-01-18 17:43:28
Reply to
Petr Machata, 2021-01-18
On 1/18/21 7:05 AM, Petr Machata wrote:
This function uses the global nexthop policy, but only accepts four
particular attributes. Create a new policy that only includes the four
supported attributes, and use it. Convert the loop to a series of ifs.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
---
 net/ipv4/nexthop.c | 57 +++++++++++++++++++++-------------------------
 1 file changed, 26 insertions(+), 31 deletions(-)
Reviewed-by: David Ahern <dsahern@kernel.org>

Thread (15 messages) 15 messages, 4 authors, last reply 2021-01-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help