Re: [PATCH net-next 1/3 v4] net: track link-status of ipv4 nexthops

2015-06-18 Thread Andy Gospodarek
On Thu, Jun 18, 2015 at 03:26:30AM -0700, David Miller wrote: From: Andy Gospodarek go...@cumulusnetworks.com Date: Mon, 15 Jun 2015 12:33:19 -0400 @@ -1107,9 +1107,10 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo struct net_device *dev =

Re: [PATCH net-next 1/3 v4] net: track link-status of ipv4 nexthops

2015-06-18 Thread David Miller
From: Andy Gospodarek go...@cumulusnetworks.com Date: Mon, 15 Jun 2015 12:33:19 -0400 @@ -1107,9 +1107,10 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo struct net_device *dev = netdev_notifier_info_to_dev(ptr); struct in_device *in_dev;

[PATCH net-next 1/3 v4] net: track link-status of ipv4 nexthops

2015-06-15 Thread Andy Gospodarek
Add a fib flag called RTNH_F_LINKDOWN to any ipv4 nexthops that are reachable via an interface where carrier is off. No action is taken, but additional flags are passed to userspace to indicate carrier status. This also includes a cleanup to fib_disable_ip to more clearly indicate what event