* [PATCH] net:Kconfig: drop no sense dependence entry for BONDING
@ 2015-03-12 13:59 Wang YanQing
2015-03-12 14:13 ` Erik Hugne
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Wang YanQing @ 2015-03-12 13:59 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-kernel, linux-kbuild, j.vosburgh, vfalico, gospo
"IPV6 || IPV6=n" means no dependence!
Signed-off-by: Wang YanQing <udknight@gmail.com>
---
drivers/net/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index df51d60..37b364f 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -40,7 +40,6 @@ if NET_CORE
config BONDING
tristate "Bonding driver support"
depends on INET
- depends on IPV6 || IPV6=n
---help---
Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
Channels together. This is called 'Etherchannel' by Cisco,
--
2.2.2.dirty
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] net:Kconfig: drop no sense dependence entry for BONDING
2015-03-12 13:59 [PATCH] net:Kconfig: drop no sense dependence entry for BONDING Wang YanQing
@ 2015-03-12 14:13 ` Erik Hugne
2015-03-12 15:14 ` Martin Walch
2015-03-12 18:15 ` David Miller
2 siblings, 0 replies; 5+ messages in thread
From: Erik Hugne @ 2015-03-12 14:13 UTC (permalink / raw)
To: Wang YanQing, davem, netdev, linux-kernel, linux-kbuild,
j.vosburgh, vfalico, gospo
On Thu, Mar 12, 2015 at 09:59:33PM +0800, Wang YanQing wrote:
> "IPV6 || IPV6=n" means no dependence!
Wow, this is all over the place..
find . -name 'Kconfig' | xargs grep 'depends on' |grep 'IPV6 || IPV6=n'
>
> Signed-off-by: Wang YanQing <udknight@gmail.com>
> ---
> drivers/net/Kconfig | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
> index df51d60..37b364f 100644
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -40,7 +40,6 @@ if NET_CORE
> config BONDING
> tristate "Bonding driver support"
> depends on INET
> - depends on IPV6 || IPV6=n
> ---help---
> Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
> Channels together. This is called 'Etherchannel' by Cisco,
> --
> 2.2.2.dirty
> --
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net:Kconfig: drop no sense dependence entry for BONDING
2015-03-12 13:59 [PATCH] net:Kconfig: drop no sense dependence entry for BONDING Wang YanQing
2015-03-12 14:13 ` Erik Hugne
@ 2015-03-12 15:14 ` Martin Walch
2015-03-12 17:30 ` Eric Dumazet
2015-03-12 18:15 ` David Miller
2 siblings, 1 reply; 5+ messages in thread
From: Martin Walch @ 2015-03-12 15:14 UTC (permalink / raw)
To: Wang YanQing
Cc: davem, netdev, linux-kernel, linux-kbuild, j.vosburgh, vfalico,
gospo, Erik Hugne
On Thursday 12 March 2015 21:59:33 Wang YanQing wrote:
> "IPV6 || IPV6=n" means no dependence!
IPV6 and BONDING are both tristate symbols and therefore this is not the same
as no dependency. When setting IPV6 to m, the expression evaluates to
"IPV6 || IPV6=n"
"m || m=n"
"m || n"
"m"
So, if IPV6=m, then BONDING can only be n or m, but not y.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net:Kconfig: drop no sense dependence entry for BONDING
2015-03-12 15:14 ` Martin Walch
@ 2015-03-12 17:30 ` Eric Dumazet
0 siblings, 0 replies; 5+ messages in thread
From: Eric Dumazet @ 2015-03-12 17:30 UTC (permalink / raw)
To: Martin Walch
Cc: Wang YanQing, davem, netdev, linux-kernel, linux-kbuild,
j.vosburgh, vfalico, gospo, Erik Hugne
On Thu, 2015-03-12 at 16:14 +0100, Martin Walch wrote:
> On Thursday 12 March 2015 21:59:33 Wang YanQing wrote:
> > "IPV6 || IPV6=n" means no dependence!
>
> IPV6 and BONDING are both tristate symbols and therefore this is not the same
> as no dependency. When setting IPV6 to m, the expression evaluates to
>
> "IPV6 || IPV6=n"
> "m || m=n"
> "m || n"
> "m"
>
> So, if IPV6=m, then BONDING can only be n or m, but not y.
Right.
But it looks like bonding driver no longer has IPV6 dependencies.
Patch should work, but the changelog should be changed to explain why
the patch is valid, and this should be tested.
Presumably we need to make sure the following builds and runs properly
CONFIG_BONDING=y
CONFIG_IPV6=m
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net:Kconfig: drop no sense dependence entry for BONDING
2015-03-12 13:59 [PATCH] net:Kconfig: drop no sense dependence entry for BONDING Wang YanQing
2015-03-12 14:13 ` Erik Hugne
2015-03-12 15:14 ` Martin Walch
@ 2015-03-12 18:15 ` David Miller
2 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2015-03-12 18:15 UTC (permalink / raw)
To: udknight; +Cc: netdev, linux-kernel, linux-kbuild, j.vosburgh, vfalico, gospo
From: Wang YanQing <udknight@gmail.com>
Date: Thu, 12 Mar 2015 21:59:33 +0800
> "IPV6 || IPV6=n" means no dependence!
>
> Signed-off-by: Wang YanQing <udknight@gmail.com>
It is only nonsense because you don't actually understand what the
statement does.
It makes sure that either IPV6 is enabled and _EQUALS_ what BONDING is
set to ("y" _or_ "m"), or it is disabled.
This pattern is used all over the place and is quite common actually.
Better to first ask what a statement does, than to knee-jerk submit a
patch to remove it. Because patch submissions use up people's
resources and time, particularly mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-12 18:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12 13:59 [PATCH] net:Kconfig: drop no sense dependence entry for BONDING Wang YanQing
2015-03-12 14:13 ` Erik Hugne
2015-03-12 15:14 ` Martin Walch
2015-03-12 17:30 ` Eric Dumazet
2015-03-12 18:15 ` David Miller
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).