From: Florian Fainelli <f.fainelli@gmail.com>
To: Scott Feldman <sfeldma@gmail.com>,
Andy Gospodarek <gospo@cumulusnetworks.com>
Cc: Jiri Pirko <jiri@resnulli.us>, Andrew Lunn <andrew@lunn.ch>,
Rafa?? Mi??ecki <zajec5@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Network Development <netdev@vger.kernel.org>,
Jonas Gorski <jogo@openwrt.org>,
Hauke Mehrtens <hauke@hauke-m.de>,
Felix Fietkau <nbd@openwrt.org>
Subject: Re: [PATCH] net: phy: b53: switchdev driver for Broadcom BCM53xx switches
Date: Thu, 26 Feb 2015 09:52:31 -0800 [thread overview]
Message-ID: <54EF5D5F.6060703@gmail.com> (raw)
In-Reply-To: <CAE4R7bBspZn3Mt2-KGeBBCfkxOQAmFFoOZJAnTKJBNPkS9P2Lg@mail.gmail.com>
On 26/02/15 06:19, Scott Feldman wrote:
> On Thu, Feb 26, 2015 at 6:13 AM, Andy Gospodarek
> <gospo@cumulusnetworks.com> wrote:
>> On Thu, Feb 26, 2015 at 07:47:55AM +0100, Jiri Pirko wrote:
>>> Thu, Feb 26, 2015 at 05:21:58AM CET, gospo@cumulusnetworks.com wrote:
>>>> On Wed, Feb 25, 2015 at 04:53:24PM -0800, Scott Feldman wrote:
>>>>> On Wed, Feb 25, 2015 at 7:46 AM, Andy Gospodarek
>>>>> <gospo@cumulusnetworks.com> wrote:
>>>>>> On Wed, Feb 25, 2015 at 03:03:56PM +0100, Andrew Lunn wrote:
>>>>>> [...]
>>>>>>>
>>>>>>> What we don't want is X chip families and Y different ways to
>>>>>>> configure the features. Ideal we want X chip families, and one way to
>>>>>>> configure them all.
>>>>>>
>>>>>> This statement is really my primary concern. There is lots of interest
>>>>>> around hardware offload at this point and it seems like there is a risk
>>>>>> that a lack of consistency can create problems.
>>>>>>
>>>>>> I think these patches are great as they allow for the programming of the
>>>>>> offload hardware (and it has been pointed out that this drastically
>>>>>> increases performance), but one concern I have with this patch (related
>>>>>> to this) is that I'm not sure there is a major need to create netdevs
>>>>>> automatically if there is not the ability to rx/tx actual frames on
>>>>>> these interfaces.
>>>>>
>>>>> Even when not used for rx/tx to CPU, it seems the netdevs are still
>>>>> useful as an anchor to build higher-level constructs such as bridge or
>>>>> bond, and to hang stuff like netdev stats or ethtool-ish things.
>>>>>
>>>>
>>>> I agree that they are useful, but now we are really dealing with a
>>>> netdev that is slightly lower functionality than we expect from a netdev
>>>> right now.
>>>
>>> Is that a real care for some device now?
>> I guess that depends on how users expect to use it. :)
>>
>>> I agree with Scott that we need to model is consistently. If there is
>>> such port netdev witch cannot tx/rx, we can expose the fact using some
>>> flag...
>> Using a flag to expose/mark this was exactly my thought.
>
> Missing .ndo_start_xmit is the clue....do we need more?
We probably want to prevent users from assigning IP addresses to these
interfaces as well, a while ago we talked about not assigning an
inet_device/inet6_device pointer, maybe that's the way to go?
--
Florian
next prev parent reply other threads:[~2015-02-26 17:52 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 17:42 [PATCH] net: phy: b53: switchdev driver for Broadcom BCM53xx switches Rafał Miłecki
2015-02-24 17:47 ` Rafał Miłecki
2015-02-24 21:51 ` Andrew Lunn
2015-02-24 22:29 ` Rafał Miłecki
2015-02-25 0:51 ` Andrew Lunn
2015-02-24 22:30 ` Andy Gospodarek
2015-02-24 22:50 ` Rafał Miłecki
2015-02-24 22:55 ` Florian Fainelli
2015-02-25 0:15 ` Andrew Lunn
2015-02-25 0:39 ` Florian Fainelli
2015-02-25 7:03 ` Rafał Miłecki
2015-02-25 8:07 ` Jiri Pirko
2015-02-25 14:03 ` Andrew Lunn
2015-02-25 14:17 ` Rafał Miłecki
2015-02-25 14:19 ` Andrew Lunn
2015-02-26 14:58 ` Rafał Miłecki
2015-02-26 15:18 ` Andrew Lunn
2015-02-26 15:30 ` Rafał Miłecki
2015-02-26 15:36 ` Andrew Lunn
2015-02-26 15:49 ` Rafał Miłecki
2015-02-26 16:21 ` Andrew Lunn
2015-02-26 17:58 ` Florian Fainelli
2015-02-26 18:26 ` Scott Feldman
2015-02-26 17:57 ` Florian Fainelli
2015-02-25 15:46 ` Andy Gospodarek
2015-02-25 17:23 ` Rafał Miłecki
2015-02-25 21:56 ` Andrew Lunn
2015-02-26 0:53 ` Scott Feldman
2015-02-26 4:21 ` Andy Gospodarek
2015-02-26 6:47 ` Jiri Pirko
2015-02-26 7:14 ` B Viswanath
2015-02-26 14:13 ` Andy Gospodarek
2015-02-26 14:19 ` Scott Feldman
2015-02-26 14:44 ` Jiri Pirko
2015-02-27 22:21 ` David Miller
2015-02-26 17:52 ` Florian Fainelli [this message]
2015-02-26 17:51 ` Florian Fainelli
2015-02-25 6:44 ` Rafał Miłecki
2015-02-24 22:48 ` Florian Fainelli
2015-02-24 22:56 ` Rafał Miłecki
2015-02-24 22:59 ` Florian Fainelli
2015-02-25 2:10 ` 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=54EF5D5F.6060703@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=gospo@cumulusnetworks.com \
--cc=hauke@hauke-m.de \
--cc=jiri@resnulli.us \
--cc=jogo@openwrt.org \
--cc=nbd@openwrt.org \
--cc=netdev@vger.kernel.org \
--cc=sfeldma@gmail.com \
--cc=zajec5@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.