Thread (10 messages) 10 messages, 3 authors, 2013-11-01

Re: [PATCH] ipv6: remove the unnecessary statement in find_match()

From: David Miller <davem@davemloft.net>
Date: 2013-10-31 04:22:37

From: Hannes Frederic Sowa <redacted>
Date: Wed, 30 Oct 2013 22:11:57 +0100
On Wed, Oct 30, 2013 at 05:08:37PM -0400, David Miller wrote:
quoted
From: Duan Jiong <redacted>
Date: Wed, 30 Oct 2013 15:39:26 +0800
quoted
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 <redacted>
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?

Either way it'd probably be a per-inet6_dev option, right?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help