From: David Miller <davem@davemloft.net>
To: gospo@cumulusnetworks.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next] ipv4: properly apply change to ignore_routes_on_linkdown to all interfaces
Date: Sun, 06 Mar 2016 22:38:21 -0500 (EST) [thread overview]
Message-ID: <20160306.223821.1949140799875890455.davem@davemloft.net> (raw)
In-Reply-To: <1456936986-2042-1-git-send-email-gospo@cumulusnetworks.com>
From: Andy Gospodarek <gospo@cumulusnetworks.com>
Date: Wed, 2 Mar 2016 11:43:06 -0500
> Any change to sysctl net.ipv4.conf.all.ignore_routes_with_linkdown does
> not result in a change to all interfaces on the system. This means that
> any devices initialized before sysctl settings are applied on boot do
> not see a change if the sysctl setting is different than what the stack
> has as a default ('0' in this case).
>
> This patch changes the net.ipv4.conf.all.ignore_routes_with_linkdown
> setting to match what is done for forwarding for ipv4 and for
> ignore_routes_with_linkdown for ipv6. The current behavior was not
> intentional and had I recognized this corner-case before posting I would
> have done this with the first series.
>
> Fixes: 0eeb075fad73 ("net: ipv4 sysctl option to ignore routes when nexthop link is down")
> Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
> ---
> Generic infrastructure could be added to do this for all values, but I'm
> hesitant to do this since historically users are probably depending on
> the exiting behavior (whether intentional or not) for the more widely
> used sysctls.
"Properly" is a matter of interpretation.
Traditionally the way ipv4 works for most sysctls is that we pick up
the default and all values at the time the device get's it's ipv4
private attached (first ipv4 address configured, etc.)
So it's a bit too late now to change this behavior.
Yes, that's even if ipv6 behaves differently, and that's even if some
other ipv4 sysctls behave differently too.
I'm not applying this, sorry.
next prev parent reply other threads:[~2016-03-07 3:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 16:43 [PATCH net-next] ipv4: properly apply change to ignore_routes_on_linkdown to all interfaces Andy Gospodarek
2016-03-02 18:17 ` David Ahern
2016-03-02 18:28 ` Andy Gospodarek
2016-03-02 18:36 ` David Ahern
2016-03-02 18:46 ` Andy Gospodarek
2016-03-07 3:38 ` David Miller [this message]
2016-03-07 13:21 ` Andy Gospodarek
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=20160306.223821.1949140799875890455.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=gospo@cumulusnetworks.com \
--cc=netdev@vger.kernel.org \
/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).