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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:39:32 +0000 (23:39 -0700)
commite37791ec1ad785b59022ae211f63a16189bacebf
treec3fbc1b1c9570aae6afaf6ed6b949e365c8dd5fa
parent52491c7607c5527138095edf44c53169dc1ddb82
mpls: Send route delete notifications when router module is unloaded

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>
net/mpls/af_mpls.c