public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Duan Jiong <duanj.fnst@cn•fujitsu.com>
To: David Miller <davem@davemloft•net>
Cc: netdev@vger•kernel.org, hannes@stressinduktion•org
Subject: Re: [PATCH] ipv6: remove the unnecessary statement in find_match()
Date: Thu, 31 Oct 2013 19:09:56 +0800	[thread overview]
Message-ID: <52723A84.9080308@cn.fujitsu.com> (raw)
In-Reply-To: <20131031084537.GA17210@order.stressinduktion.org>

于 2013年10月31日 16:45, Hannes Frederic Sowa 写道:
> On Thu, Oct 31, 2013 at 02:02:11PM +0800, Duan Jiong wrote:
>> 于 2013年10月31日 12:22, David Miller 写道:
>>> From: Hannes Frederic Sowa <hannes@stressinduktion•org>
>>> Date: Wed, 30 Oct 2013 22:11:57 +0100
>>>
>>>> On Wed, Oct 30, 2013 at 05:08:37PM -0400, David Miller wrote:
>>>>> From: Duan Jiong <duanj.fnst@cn•fujitsu.com>
>>>>> Date: Wed, 30 Oct 2013 15:39:26 +0800
>>>>>
>>>>>>
>>>>>> After reading the function rt6_check_neigh(), we can
>>>>>> know that the RT6_NUD_FAIL_SOFT can be returned only
>>>>>> when the IS_ENABLE(CONFIG_IPV6_ROUTER_PREF) is false.
>>>>>> so in function find_match(), there is no need to execute
>>>>>> the statement !IS_ENABLED(CONFIG_IPV6_ROUTER_PREF).
>>>>>>
>>>>>> Signed-off-by: Duan Jiong <duanj.fnst@cn•fujitsu.com>
>>>>>
>>>>> Applied to net-next, thanks.
>>>>>
>>>>> CONFIG_IPV6_ROUTER_PREF is another good candidate for Kconfig
>>>>> removal.  I know we've had several bugs that only apply when
>>>>> this option is on vs. off.  We're maintaining two different
>>>>> code paths, for really no good reason.
>>>>
>>>> I agree and actually thought about that yesterday. Do you think a sysctl
>>>> is a good option?
>>>
>>> Every distribution ships with the Kconfig option on, and no sysctl
>>> exists currently to control it.
>>>
>>> So I'd say it's not necessary at all, or at the very least let's have
>>> someone come forward with a real rather than theoretical use case for
>>> such a feature before adding it.
>>>
>>> Actually, if RFC 4191 has the usual language like "there SHOULD be
>>> an administrative mechanism to disable blah blah blah" I could
>>> be convinced to add it now.  Can someone take a look?
>>
>> It seems that there is no such an administrative mechanism in RFC 4191.
>>
>> By the way, if the sysctl is used, we are still maintaining two different
>> code paths, isn't it? so i think David's idea is good.
> 
> Makes life easier, no objections from me.
> 

Removing CONFIG_IPV6_ROUTER_PREF means that the Router Preference is always
on, is this understanding right?

If that's is correct,  i think compatibility issues will arise. For example, when the
CONFIG_IPV6_ROUTER_PREF option is on, the kernel should not do round-robin during
default router selection, but when the CONFIG_IPV6_ROUTER_PREF option is off, the
kernel should do it.

Thanks,
  Duan

> Greetings,
> 
>   Hannes
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger•kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2013-10-31 11:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30  7:39 [PATCH] ipv6: remove the unnecessary statement in find_match() Duan Jiong
2013-10-30  9:44 ` Hannes Frederic Sowa
2013-10-30 21:08 ` David Miller
2013-10-30 21:11   ` Hannes Frederic Sowa
2013-10-31  4:22     ` David Miller
2013-10-31  6:02       ` Duan Jiong
2013-10-31  8:45         ` Hannes Frederic Sowa
2013-10-31 11:09           ` Duan Jiong [this message]
2013-10-31 11:57             ` Hannes Frederic Sowa
2013-11-01 22:08             ` 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=52723A84.9080308@cn.fujitsu.com \
    --to=duanj.fnst@cn$(echo .)fujitsu.com \
    --cc=davem@davemloft$(echo .)net \
    --cc=hannes@stressinduktion$(echo .)org \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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