net: ipv6: new arg skip_notify to ip6_rt_del

Used in subsequent work to skip route delete
notifications on nexthop deletes.

Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Roopa Prabhu
2020-04-27 13:56:45 -07:00
committed by David S. Miller
parent 2ac757e415
commit 11dd74b338
8 changed files with 21 additions and 17 deletions

View File

@@ -1302,7 +1302,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
}
}
if (rt && lifetime == 0) {
ip6_del_rt(net, rt);
ip6_del_rt(net, rt, false);
rt = NULL;
}