]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 22 Mar 2017 14:02:34 +0000 (08:02 -0600)
commited846aea2a05f47db5ca5f740edc104939809ea8
tree2578f0b84177146d63bf1c939546c2e4ec4993ba
parentd1dc1b9556b325a50c8ad23d2bc609bed4a5a1f8
mpls: Send route delete notifications when router module is unloaded

BugLink: http://bugs.launchpad.net/bugs/1675032
[ 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>
net/mpls/af_mpls.c