From: Florian Fainelli <f.fainelli@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>,
"Lennert Buytenhek" <buytenh@wantstofly.org>,
"Jiří Pírko" <jiri@resnulli.us>
Subject: Re: [PATCH net-next] net: ipconfig: allow IP-Config over DSA devices
Date: Thu, 5 Jun 2014 10:47:15 -0700 [thread overview]
Message-ID: <CAGVrzcbu6vCKDdDuz+aPCxFGL3rhSREugb17Y_sAzSLmg9Jvaw@mail.gmail.com> (raw)
In-Reply-To: <20140605.000132.501712848318656492.davem@davemloft.net>
2014-06-05 0:01 GMT-07:00 David Miller <davem@davemloft.net>:
> From: Florian Fainelli <f.fainelli@gmail.com>
> Date: Fri, 30 May 2014 11:08:45 -0700
>
>> Let me know your thoughts. If you feel like something like:
>> netdev_is_upper_dev() or something like that is better.
>
> I'm not happy with this change for several reasons.
>
> First, I don't like the idea that ipconfig works for some stacked
> devices and not for others.
Right, although as I described DSA devices are likely to be the only
real kernel-only created devices here, other stacked devices such as
bonds, vlans and tunnels for instance do require either kernel
modifications to be created by the kernel, or user-space.
> I'd rather that we simply accept that
> direct devices are the only thing supported.
Would you be willing to revise this position if we can come up with a
generic infrastructure for telling whether a network device depends on
another one and its master device needs to be opened first? Should we
instead force the slave devices in net/dsa/slave.c to open its master
device if it is not UP?
>
> Secondly, the logic in that ipconfig loop is so confusing. I can't
> even figure out what that dsa pointer test is trying to really
> accomplish in the second hunk of your patch.
>
> I'd like to defer this for now, sorry.
Thanks for your comments.
--
Florian
prev parent reply other threads:[~2014-06-05 17:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-30 18:08 [PATCH net-next] net: ipconfig: allow IP-Config over DSA devices Florian Fainelli
2014-05-30 18:08 ` [PATCH net-next] net: ipconfig: handle DSA enabled network devices Florian Fainelli
2014-05-31 7:04 ` [PATCH net-next] net: ipconfig: allow IP-Config over DSA devices Jiri Pirko
2014-06-02 18:02 ` Florian Fainelli
2014-06-05 7:01 ` David Miller
2014-06-05 17:47 ` Florian Fainelli [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=CAGVrzcbu6vCKDdDuz+aPCxFGL3rhSREugb17Y_sAzSLmg9Jvaw@mail.gmail.com \
--to=f.fainelli@gmail.com \
--cc=buytenh@wantstofly.org \
--cc=davem@davemloft.net \
--cc=jiri@resnulli.us \
--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).