From: "Mahesh Bandewar (महेश बंडेवार)" <maheshb@google.com>
To: David Miller <davem@davemloft.net>
Cc: dsa@cumulusnetworks.com, mahesh@bandewar.net,
linux-netdev <netdev@vger.kernel.org>,
Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH next 3/3] ipvlan: Introduce l3s mode
Date: Sat, 10 Sep 2016 11:48:52 -0700 [thread overview]
Message-ID: <CAF2d9jjxKqPA_gk35d_9ujNFEp8U2cjoEoubHNC2sV5Dc6vG4w@mail.gmail.com> (raw)
In-Reply-To: <20160910.111140.1065918968661149789.davem@davemloft.net>
On Sat, Sep 10, 2016 at 11:11 AM, David Miller <davem@davemloft.net> wrote:
> From: David Ahern <dsa@cumulusnetworks.com>
> Date: Sat, 10 Sep 2016 10:25:27 -0600
>
>> On 9/9/16 4:46 PM, Mahesh Bandewar (महेश बंडेवार) wrote:
>>> On Fri, Sep 9, 2016 at 3:26 PM, David Ahern <dsa@cumulusnetworks.com> wrote:
>>>> On 9/9/16 3:53 PM, Mahesh Bandewar wrote:
>>>>> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
>>>>> index 0c5415b05ea9..95edd1737ab5 100644
>>>>> --- a/drivers/net/Kconfig
>>>>> +++ b/drivers/net/Kconfig
>>>>> @@ -149,6 +149,7 @@ config IPVLAN
>>>>> tristate "IP-VLAN support"
>>>>> depends on INET
>>>>> depends on IPV6
>>>>> + select NET_L3_MASTER_DEV
>>>>
>>>> depends on instead of select?
>>>
>>> The kbuild/kconfig-language.txt suggests that for "depends on" the
>>> option _must_ be selected otherwise menuconfig wont even present the
>>> dependent option while select positively sets the option.
>>
>> understood. VRF driver uses 'depends on'
>
> Select is for things that are largely invisible to the user. It is more of
> a brute force tool that has several limitations. For one, it doesn't
> recursively apply dependencies of the thing you selected. This makes it
> quite trivial to create situations where you select X but it actually
> can't work because it's "depend" statements aren't satisfied.
>
I look at "select" as more of a tool than brute-force / hack. It
allows to "select" something that is largely independent and otherwise
not really harmful (of for that matter even useful). Now if you look
at L3_MASTER, it's not really useful if the users of this feature (VRF
or IPvlan) are not chosen. Hence I would say "select" fits in this
scenario better (I mean for IPvlan or VRF driver choosing select over
depend) However I agree that if you "select" some option which has
dependencies and it becomes ambiguous but that's not the case here.
> Depend is really the thing you ought to use, and yes this means that the
> user has to know to enable the thing you depend upon to make your feature
> available. But that's just how it works.
I thought "select" is a better choice for the said reasons. I don't
mind changing it to "depend" but it would make it difficult for novice
users to figure-out why they can't see this driver-config.
prev parent reply other threads:[~2016-09-10 18:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 21:53 [PATCH next 3/3] ipvlan: Introduce l3s mode Mahesh Bandewar
2016-09-09 22:07 ` Rick Jones
2016-09-09 22:17 ` Mahesh Bandewar (महेश बंडेवार)
2016-09-09 22:26 ` David Ahern
2016-09-09 22:46 ` Mahesh Bandewar (महेश बंडेवार)
2016-09-10 16:25 ` David Ahern
2016-09-10 18:11 ` David Miller
2016-09-10 18:48 ` Mahesh Bandewar (महेश बंडेवार) [this message]
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=CAF2d9jjxKqPA_gk35d_9ujNFEp8U2cjoEoubHNC2sV5Dc6vG4w@mail.gmail.com \
--to=maheshb@google.com \
--cc=davem@davemloft.net \
--cc=dsa@cumulusnetworks.com \
--cc=edumazet@google.com \
--cc=mahesh@bandewar.net \
--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).