mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
mpls: Send route delete notifications when router module is unloaded
am: b57955ea30
Change-Id: Ica14abfb917ddcf236459f3e6886234a9daac40b
This commit is contained in:
@@ -1567,6 +1567,7 @@ static void mpls_net_exit(struct net *net)
|
||||
for (index = 0; index < platform_labels; index++) {
|
||||
struct mpls_route *rt = rtnl_dereference(platform_label[index]);
|
||||
RCU_INIT_POINTER(platform_label[index], NULL);
|
||||
mpls_notify_route(net, index, rt, NULL, NULL);
|
||||
mpls_rt_free(rt);
|
||||
}
|
||||
rtnl_unlock();
|
||||
|
||||
Reference in New Issue
Block a user