diff options
| author | David Ahern <dsa@cumulusnetworks.com> | 2017-03-22 11:30:56 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-03-22 11:30:56 +0000 |
| commit | 02e2cf1d4d1d96bb87bd0ed005d588cdb7946606 (patch) | |
| tree | 663287203acfabb84bfb4f531971dac67ca39a17 /net | |
| parent | 2e755cde9f58eb312c8cad97e6e90f006378874a (diff) | |
| parent | b57955ea30e13aa37e5955bf20617f839f32c560 (diff) | |
mpls: Send route delete notifications when router module is unloaded
am: b57955ea30
Change-Id: Ica14abfb917ddcf236459f3e6886234a9daac40b
Diffstat (limited to 'net')
| -rw-r--r-- | net/mpls/af_mpls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index 881bc2072809..52cfc4478511 100644 --- a/net/mpls/af_mpls.c +++ b/net/mpls/af_mpls.c @@ -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(); |
