Re: [PATCHv2 net 1/2] ipv4: fix to not remove local route on link down

2015-10-29 Thread David Miller
From: Julian Anastasov Date: Mon, 26 Oct 2015 23:59:12 +0200 ... > -int fib_sync_down_dev(struct net_device *dev, unsigned long event) > +/* Event force Flags Description > + * NETDEV_CHANGE 0 LINKDOWNCarrier OFF, not for scope host > + *

[PATCHv2 net 1/2] ipv4: fix to not remove local route on link down

2015-10-26 Thread Julian Anastasov
When fib_netdev_event calls fib_disable_ip on NETDEV_DOWN event we should not delete the local routes if the local address is still present. The confusion comes from the fact that both fib_netdev_event and fib_inetaddr_event use the NETDEV_DOWN constant. Fix it by returning back the variable