Thread (5 messages) flat view 5 messages, 3 authors, 2017-03-13

Re: [PATCH] mpls: Do not decrement alive counter for unregister events

From: David Ahern <hidden>
Date: 2017-03-13 21:11:09

On 3/13/17 5:10 AM, Robert Shearman wrote:
Doesn't this leave the problem that if the device's link goes down and
then the device gets deleted the alive count will be decremented twice
for the same path?
yes. and it exposes another bug in multipath selection.
Perhaps it would be better to change the condition for decrementing the
alive count to be "!(nh->nh_flags & (RTNH_F_LINKDOWN | RTNH_F_DEAD))"?
or maybe the logic in mpls_ifup is the way to go -- reset the alive
counter based on the sum of each nexhop's status.

I'll send more patches soon.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help