Skip to contentSkip to conversation

RTM_DELROUTE on interface going down - when to send?

DISCUSSION Michal Kubecek 3 participants 4 messages Dec 17, 2013 – Dec 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

one of our customers noticed that when an interface is switched down, no RTM_DELROUTE message is sent for IPv4 routes being deleted (but there are RTM_NEWROUTE messages when the interface is switched up). This is because rather than deleting the routes with fib_table_delete(), they are flagged with RTNH_F_DEAD in fib_sync_down_dev() and then deleted in trie_flush_list().

Before I start with the patch, I would like to ask: would it be more appropriate to send the message when the route is marked as dead or when it is actually deleted from the trie?

Michal Kubecek

#1 lore raw

Hi Michal,

Quoted 4 lines · Michal Kubecek

Before I start with the patch, I would like to ask: would it be more appropriate to send the message when the route is marked as dead or when it is actually deleted from the trie?

I noticed the same thing a few months ago and submitted a patch
(http://www.spinics.net/lists/netdev/msg254106.html). However, it was not applied because it would cause too much traffic on large-scale routers (see davem's reply here
http://www.spinics.net/lists/netdev/msg254186.html).

-Kristian

#2 lore raw
Quoted 11 lines · Kristian Evensen
Quoted 4 lines · Michal Kubecek

Before I start with the patch, I would like to ask: would it be more appropriate to send the message when the route is marked as dead or when it is actually deleted from the trie?

I noticed the same thing a few months ago and submitted a patch
(http://www.spinics.net/lists/netdev/msg254106.html). However, it was not applied because it would cause too much traffic on large-scale routers (see davem's reply here
http://www.spinics.net/lists/netdev/msg254186.html).

Thank you for the pointer. However, I agree that the inconsistencies (IPv4 vs. IPv6, RTM_DELROUTE vs. RTM_NEWROUTE) are really unfortunate.

Michal Kubecek

#3 lore raw
Quoted 7 lines · Michal Kubecek
Quoted 6 lines · Kristian Evensen
Quoted 4 lines · Michal Kubecek

Before I start with the patch, I would like to ask: would it be more appropriate to send the message when the route is marked as dead or when it is actually deleted from the trie?

Quoted 8 lines
Quoted 5 lines

I noticed the same thing a few months ago and submitted a patch
(http://www.spinics.net/lists/netdev/msg254106.html). However, it was not applied because it would cause too much traffic on large-scale routers (see davem's reply here
http://www.spinics.net/lists/netdev/msg254186.html).

Thank you for the pointer. However, I agree that the inconsistencies (IPv4 vs. IPv6, RTM_DELROUTE vs. RTM_NEWROUTE) are really unfortunate.

Sure. Note that this fix is regularly proposed, another pointer:
http://patchwork.ozlabs.org/patch/195516/