net: mpls: Delete route when all nexthops have been deleted
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 24 Mar 2017 22:21:57 +0000 (15:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Mar 2017 21:09:50 +0000 (14:09 -0700)
commit4ea8efadf5690c1ab22f981a5fcff819bd09ff31
tree74d242126811f7d73bc09832cd46865c253de9cb
parentc00e51ddbfda73d2be6d61fea2e58aeb57527475
net: mpls: Delete route when all nexthops have been deleted

When all devices for all nexthops in a route have been deleted, the
route is effectively dead, so remove it.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c