Re: [RFC net-next 1/5] net: dsa: Add infrastructure to support LAG

2017-10-02 Thread Florian Fainelli
On 10/01/2017 07:03 PM, Andrew Lunn wrote: > On Sun, Oct 01, 2017 at 12:46:35PM -0700, Florian Fainelli wrote: >> Add the necessary logic to support network device events targetting LAG >> events, >> this is loosely inspired from mlxsw/spectrum.c. >> >> In the process we change dsa_slave_changeupp

Re: [RFC net-next 1/5] net: dsa: Add infrastructure to support LAG

2017-10-02 Thread Ido Schimmel
On Mon, Oct 02, 2017 at 04:03:27AM +0200, Andrew Lunn wrote: > On Sun, Oct 01, 2017 at 12:46:35PM -0700, Florian Fainelli wrote: > > +static bool dsa_slave_lag_check(struct net_device *dev, struct net_device > > *lag_dev, > > + struct netdev_lag_upper_info *lag_upper_info

Re: [RFC net-next 1/5] net: dsa: Add infrastructure to support LAG

2017-10-01 Thread Andrew Lunn
On Sun, Oct 01, 2017 at 12:46:35PM -0700, Florian Fainelli wrote: > Add the necessary logic to support network device events targetting LAG > events, > this is loosely inspired from mlxsw/spectrum.c. > > In the process we change dsa_slave_changeupper() to be more generic and be > called > from b

[RFC net-next 1/5] net: dsa: Add infrastructure to support LAG

2017-10-01 Thread Florian Fainelli
Add the necessary logic to support network device events targetting LAG events, this is loosely inspired from mlxsw/spectrum.c. In the process we change dsa_slave_changeupper() to be more generic and be called from both LAG events as well as normal bridge enslaving events paths. The DSA layer ta