public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonas Johansson <jonasj76@gmail.com>
To: Scott Feldman <sfeldma@gmail.com>
Cc: "Jonas Johansson" <jonasj76@gmail.com>,
	Netdev <netdev@vger.kernel.org>,
	"Jonas Johansson" <jonas.johansson@westermo.se>,
	"Roopa Prabhu" <roopa@cumulusnetworks.com>,
	"Florian Fainelli" <f.fainelli@gmail.com>,
	"Andy Gospodarek" <gospo@cumulusnetworks.com>,
	"Jiří Pírko" <jiri@resnulli.us>
Subject: Re: [PATCH net-next 1/2] dsa: bonding: implement HW bonding
Date: Mon, 23 Feb 2015 16:52:06 +0100 (CET)	[thread overview]
Message-ID: <alpine.LNX.2.03.1502231646190.18726@hellgate.skynet> (raw)
In-Reply-To: <CAE4R7bCme-O6kkCWgmK_XXXfyi_uej8SvbVzDY7Q+WFp2STyRA@mail.gmail.com>



On Sat, 21 Feb 2015, Scott Feldman wrote:

> On Fri, Feb 20, 2015 at 2:51 AM, Jonas Johansson <jonasj76@gmail.com> wrote:
>> From: Jonas Johansson <jonas.johansson@westermo.se>
>>
>> This patch will implement hooks for hardware bonding support for the DSA
>> driver. When the team driver adds a DSA slave port the port will be assigned
>> a bond group id and the DSA slave driver can setup the hardware. When team
>> changes the port state (enabled/disabled) the DSA slave driver is able to
>> use the attach/detach callback which will allow the hardware to change the
>> hardware settings to reflect the state.
>>
>> Added DSA hooks:
>>  bond_add_group: To add a port to a bond group
>>  bond_del_group: To remove a port from a bond group
>>  bond_attach: To mark the port in a bond group as attached/active
>>  bond_detach: To unmark the port in a bond group as detach/inactive
>>
>> Added new network device hooks:
>>  ndo_bond_attach: To attach a device to a bond group.
>>  ndo_bond_detach: To detach a device from a bond group.
>>
>> Team:
>>  Added callback to ndo_bond_attach when port is enabled.
>>  Added callback to ndo_bond_detach when port is disabled.
>>
>> Added DSA notifier:
>>  Listening on NETDEV_CHANGEUPPER to add or deleta a port to/from a bond group.
>
> Hi Jonas,
>
> Cc:'ing Andy as he mentioned at netdev01 he was looking into something
> similar for switchdev.
>
> My comments are along the lines of the others:
>
> Can we up-level this not for just DSA but for switchdev in general?  I
> think the requirements are:
>
> 1) It should work for team or bonding.
>
> 2) Port driver needs to know a) bond membership, and b) port (active,
> inactive) status, at least for 802.3ad.
>
> 3) Try to avoid adding new ndo ops if possible, and rather use what's there.
>
> It took me a bit to figure out your new ndo ops in this patch.  Going
> by the name ndo_bond_attach/dettach, I thought these were for port
> membership, but you're using them for port status change.  So the name
> was confusing.  Since you already have port membership covered with
> netdevice event NETDEV_CHANGEUPPER, can we also adapt port status
> change into netdevice event NETDEV_BONDING_INFO?  (See
> netdev_bonding_info_change()).
>
> -scott
>
I think aiming for switchdev is a good ides. I will look into this and if 
NETDEV_BONDING_INFO can be used instead if adding the new ndo fops. I'm on 
vacation atm, so I will start look into it the next week. Thanks for all 
the good input.
- Jonas

  reply	other threads:[~2015-02-23 15:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-20 10:51 [PATCH net-next 0/2] dsa: implement HW bonding Jonas Johansson
2015-02-20 10:51 ` [PATCH net-next 1/2] dsa: bonding: " Jonas Johansson
2015-02-20 15:12   ` Andrew Lunn
2015-02-20 16:19     ` Jonas Johansson
2015-02-20 16:41   ` Florian Fainelli
2015-02-20 17:56     ` roopa
2015-02-20 19:28     ` Jonas Johansson
2015-02-21 16:57       ` Jiri Pirko
2015-02-21 20:43         ` Andrew Lunn
2015-02-21 21:12   ` Scott Feldman
2015-02-23 15:52     ` Jonas Johansson [this message]
2015-02-20 10:51 ` [PATCH net-next 2/2] mv88e6131: bonding: implement single device trunking Jonas Johansson
2015-02-20 15:26   ` Andrew Lunn
2015-02-20 15:56     ` Jonas Johansson
2015-03-06 17:06     ` Florian Fainelli
2015-03-06 19:23       ` Andrew Lunn
2015-03-06 20:47         ` Florian Fainelli
2015-03-06 21:47           ` Andrew Lunn
2015-03-06 22:43             ` Scott Feldman
2015-03-07 14:38               ` Jiri Pirko
2015-03-07 17:31                 ` John Fastabend
2015-02-21 16:40 ` [PATCH net-next 0/2] dsa: implement HW bonding Jiri Pirko

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=alpine.LNX.2.03.1502231646190.18726@hellgate.skynet \
    --to=jonasj76@gmail.com \
    --cc=f.fainelli@gmail.com \
    --cc=gospo@cumulusnetworks.com \
    --cc=jiri@resnulli.us \
    --cc=jonas.johansson@westermo.se \
    --cc=netdev@vger.kernel.org \
    --cc=roopa@cumulusnetworks.com \
    --cc=sfeldma@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox