netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Richard Laing <richard.laing@alliedtelesis.co.nz>
Cc: netdev@vger.kernel.org, jmorris@namei.org
Subject: Re: [PATCH 1/1] net/ipv4: Enable flow-based ECMP
Date: Mon, 3 Aug 2015 22:31:58 -0700	[thread overview]
Message-ID: <20150803223158.40ae7d52@urahara> (raw)
In-Reply-To: <1438651727-4429-1-git-send-email-richard.laing@alliedtelesis.co.nz>

On Tue,  4 Aug 2015 13:28:47 +1200
Richard Laing <richard.laing@alliedtelesis.co.nz> wrote:

> diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
> index 5fa643b..7db9f72 100644
> --- a/include/net/ip_fib.h
> +++ b/include/net/ip_fib.h
> @@ -117,6 +117,8 @@ struct fib_info {
>  #ifdef CONFIG_IP_ROUTE_MULTIPATH
>  	int			fib_power;
>  #endif
> +	/* Cache the number of live nexthops for flow based ECMP calculation. */
> +	int			live_nexthops;

unsigned or u16 ? rather than risking sign issues.

  reply	other threads:[~2015-08-04  5:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04  1:28 [PATCH 1/1] net/ipv4: Enable flow-based ECMP Richard Laing
2015-08-04  5:31 ` Stephen Hemminger [this message]
2015-08-04 22:07   ` Richard Laing
2015-08-04  7:37 ` Oleg A Arkhangelsky
2015-08-04 22:10   ` Richard Laing
2015-08-04 22:25   ` Tom Herbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150803223158.40ae7d52@urahara \
    --to=stephen@networkplumber.org \
    --cc=jmorris@namei.org \
    --cc=netdev@vger.kernel.org \
    --cc=richard.laing@alliedtelesis.co.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).