Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-04-24 Thread Alexandre Belloni
I realise now that I didn't reply to this comment: On 30/03/2018 16:50:08+0200, Andrew Lunn wrote: > > The fact is that ocelot doesn't have separate controls. The port is > > either forwarding or not. If it is not forwarding, then there is nothing > > to tell the HW to do. > > Think about the

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-31 Thread Florian Fainelli
Le 03/30/18 à 07:50, Andrew Lunn a écrit : > On Fri, Mar 30, 2018 at 04:16:34PM +0200, Alexandre Belloni wrote: >> On 30/03/2018 at 15:54:22 +0200, Andrew Lunn wrote: > All of this sounds like it should be moved into the br_join/leave, this > does not appear to be the right place to do

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-30 Thread Andrew Lunn
On Fri, Mar 30, 2018 at 04:16:34PM +0200, Alexandre Belloni wrote: > On 30/03/2018 at 15:54:22 +0200, Andrew Lunn wrote: > > > > All of this sounds like it should be moved into the br_join/leave, this > > > > does not appear to be the right place to do that. > > > > > > > > > > No, I've triple

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-30 Thread Alexandre Belloni
On 30/03/2018 at 15:54:22 +0200, Andrew Lunn wrote: > > > All of this sounds like it should be moved into the br_join/leave, this > > > does not appear to be the right place to do that. > > > > > > > No, I've triple checked because this is a comment that both Andrew and > > you had. Once a port

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-30 Thread Andrew Lunn
> > All of this sounds like it should be moved into the br_join/leave, this > > does not appear to be the right place to do that. > > > > No, I've triple checked because this is a comment that both Andrew and > you had. Once a port is added to the PGID MASK, it will start forwarding > frames so

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-30 Thread Alexandre Belloni
On 23/03/2018 at 14:41:25 -0700, Florian Fainelli wrote: > On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > > Add a driver for Microsemi Ocelot Ethernet switch support. > > > > This makes two modules: > > mscc_ocelot_common handles all the common features that doesn't depend on > > how the

RE: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-30 Thread Razvan Stefanescu
Hello Alexandre, > + > + register_netdevice_notifier(_netdevice_nb); > + > + dev_info(>dev, "Ocelot switch probed\n"); > + > + return 0; > + > +err_probe_ports: > + return err; > +} > + > +static int mscc_ocelot_remove(struct platform_device *pdev) > +{ > +

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-26 Thread kbuild test robot
Hi Alexandre, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20180323] [also build test WARNING on v4.16-rc7] [cannot apply to net-next/master net/master robh/for-next v4.16-rc6 v4.16-rc5 v4.16-rc4] [if your patch is applied to the wrong git tree, please drop

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-23 Thread Florian Fainelli
On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > Add a driver for Microsemi Ocelot Ethernet switch support. > > This makes two modules: > mscc_ocelot_common handles all the common features that doesn't depend on > how the switch is integrated in the SoC. Currently, it handles offloading >

Re: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

2018-03-23 Thread Andrew Lunn
Hi Alexandre > +static int ocelot_port_bridge_join(struct ocelot_port *ocelot_port, > +struct net_device *bridge) > +{ > + struct ocelot *ocelot = ocelot_port->ocelot; > + > + if (!ocelot->bridge_mask) { > + ocelot->hw_bridge_dev = bridge; > +