On 1/18/21 7:05 AM, Petr Machata wrote:
This function uses the global nexthop policy only to then bounce all
arguments except for NHA_ID. Instead, just create a new policy that
only includes the one allowed attribute.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
---
net/ipv4/nexthop.c | 21 ++++++---------------
1 file changed, 6 insertions(+), 15 deletions(-)
Reviewed-by: David Ahern <dsahern@kernel.org>