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 <pe...@nvidia.com> > Reviewed-by: Ido Schimmel <ido...@nvidia.com> > --- > net/ipv4/nexthop.c | 57 +++++++++++++++++++++------------------------- > 1 file changed, 26 insertions(+), 31 deletions(-) >
Reviewed-by: David Ahern <dsah...@kernel.org>