[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150623115949.GS588@gospo.home.greyhouse.net>
Date: Tue, 23 Jun 2015 07:59:49 -0400
From: Andy Gospodarek <gospo@...ulusnetworks.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, ddutt@...ulusnetworks.com,
sfeldma@...il.com, alexander.duyck@...il.com,
hannes@...essinduktion.org, stephen@...workplumber.org
Subject: Re: [PATCH net-next 1/3 v5] net: track link-status of ipv4 nexthops
On Tue, Jun 23, 2015 at 02:30:40AM -0700, David Miller wrote:
> From: Andy Gospodarek <gospo@...ulusnetworks.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 "~RTNH_F_COMPARE_MASK" is sufficient.
>
> > + if (linkdown == fi->fib_nhs) {
> > + fi->fib_flags |= RTNH_F_LINKDOWN;
> > + }
>
> Single line basic blocks do not get enclosing curly braces.
Sorry...v6 coming soon.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists