Netdev List
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Changli Gao <xiaosuo@gmail.com>
Cc: Joe Perches <joe@perches.com>, Joel Sing <jsing@google.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH] ipv4/route.c: respect prefsrc for local routes
Date: Tue, 04 Jan 2011 09:40:18 +0100	[thread overview]
Message-ID: <1294130418.2711.49.camel@edumazet-laptop> (raw)
In-Reply-To: <1294130315.2711.48.camel@edumazet-laptop>

Le mardi 04 janvier 2011 à 09:38 +0100, Eric Dumazet a écrit :

> This could be properly done using another macro in include/net/ip_fib.h
> to centralize this ternary op in one point :
> 
> #define __FIB_RES_PREFSRC(res, default) ((res).fi->fib_prefsrc ? : default)
> #define FIB_RES_PREFSRC(res) __FIB_RES_PREFSRC(res, default, __fib_res_prefsrc(&res)

I meant

#define FIB_RES_PREFSRC(res) __FIB_RES_PREFSRC(res, __fib_res_prefsrc(&res))




  reply	other threads:[~2011-01-04  8:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-04  6:24 [PATCH] ipv4/route.c: respect prefsrc for local routes Joel Sing
2011-01-04  7:24 ` Eric Dumazet
2011-01-04  7:33   ` Eric Dumazet
2011-01-04  8:07     ` Changli Gao
2011-01-04  8:38       ` Eric Dumazet
2011-01-04  8:40         ` Eric Dumazet [this message]
2011-01-04 14:16         ` Ben Hutchings
2011-01-04 15:32           ` Joe Perches
2011-01-04 19:35 ` David Miller

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=1294130418.2711.49.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=joe@perches.com \
    --cc=jsing@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=xiaosuo@gmail.com \
    /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