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

2015-06-23 Thread Andy Gospodarek
On Tue, Jun 23, 2015 at 02:30:40AM -0700, David Miller wrote: From: Andy Gospodarek go...@cumulusnetworks.com Date: Thu, 18 Jun 2015 11:22:10 -0400 - ((nh-nh_flags ^ onh-nh_flags) ~RTNH_F_DEAD)) + ((nh-nh_flags ^ onh-nh_flags) ~(RTNH_F_COMPARE_MASK)))

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

2015-06-23 Thread David Miller
From: Andy Gospodarek go...@cumulusnetworks.com Date: Thu, 18 Jun 2015 11:22:10 -0400 - ((nh-nh_flags ^ onh-nh_flags) ~RTNH_F_DEAD)) + ((nh-nh_flags ^ onh-nh_flags) ~(RTNH_F_COMPARE_MASK))) return -1; Excessive parenthesis, just plain

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

2015-06-18 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