mpls: Send route delete notifications when router module is unloaded
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 22 Mar 2017 11:30:56 +0000 (11:30 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Wed, 22 Mar 2017 11:30:56 +0000 (11:30 +0000)
am: b57955ea30

Change-Id: Ica14abfb917ddcf236459f3e6886234a9daac40b

net/mpls/af_mpls.c

index 881bc20728097f7e42831399393c3dea34304e39..52cfc4478511413f4852e521068c6f7386040830 100644 (file)
@@ -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();