]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:39:32 +0000 (23:39 -0700)
commitc02df520387fb522a11c584ecba1a44aed5d4a45
treec3fbc1b1c9570aae6afaf6ed6b949e365c8dd5fa
parent2cb580bc6e0c195db4867c99280db930c5aa113a
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: 2bc22cf728803 ("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