]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
mpls: Send route delete notifications when router module is unloaded
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 10 Mar 2017 17:46:15 +0000 (09:46 -0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:24:17 +0000 (09:24 +0100)
commit34d425b59ea57bc788f8cac193b42a41b3ee6177
tree2da704bd51a9fcab21b2b70ca0da81767045d81a
parentc7baca42ce5290bb51e5559c8cd2d58fde811996
mpls: Send route delete notifications when router module is unloaded

BugLink: http://bugs.launchpad.net/bugs/1675789
[ Upstream commit e37791ec1ad785b59022ae211f63a16189bacebf ]

When the mpls_router module is unloaded, mpls routes are deleted but
notifications are not sent to userspace leaving userspace caches
out of sync. Add the call to mpls_notify_route in mpls_net_exit as
routes are freed.

Fixes: 0189197f44160 ("mpls: Basic routing support")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
net/mpls/af_mpls.c