Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: add MDB support

2016-08-31 Thread Sergei Shtylyov
Hello. On 08/31/2016 05:46 PM, Vivien Didelot wrote: diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 93abfff..812cb47 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -2240,6 +2240,15 @@ static int mv88e6xxx_port_db_d

Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: add MDB support

2016-08-31 Thread Andrew Lunn
> Do you mean the something like this? > > if (obj->id == SWITCHDEV_OBJ_ID_PORT_FDB) { > ... > } else if (obj->id == SWITCHDEV_OBJ_ID_PORT_MDB) { > ... > } else { > return -EOPNOTSUPP; > } Hi Vivien The -ENONOTSUPP is even better. I was not going as far as

Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: add MDB support

2016-08-31 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > Hi Vivien > >> diff --git a/drivers/net/dsa/mv88e6xxx/chip.c >> b/drivers/net/dsa/mv88e6xxx/chip.c >> index 93abfff..812cb47 100644 >> --- a/drivers/net/dsa/mv88e6xxx/chip.c >> +++ b/drivers/net/dsa/mv88e6xxx/chip.c >> @@ -2240,6 +2240,15 @@ static int mv88e6xxx

Re: [PATCH net-next 3/3] net: dsa: mv88e6xxx: add MDB support

2016-08-31 Thread Andrew Lunn
Hi Vivien > diff --git a/drivers/net/dsa/mv88e6xxx/chip.c > b/drivers/net/dsa/mv88e6xxx/chip.c > index 93abfff..812cb47 100644 > --- a/drivers/net/dsa/mv88e6xxx/chip.c > +++ b/drivers/net/dsa/mv88e6xxx/chip.c > @@ -2240,6 +2240,15 @@ static int mv88e6xxx_port_db_dump_one(struct > mv88e6xxx_chip

[PATCH net-next 3/3] net: dsa: mv88e6xxx: add MDB support

2016-08-29 Thread Vivien Didelot
Add support for the MDB operations. This consists of loading/purging/dumping multicast addresses for a given port in the ATU. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 65 1 file changed, 65 insertions(+) diff --git a/drivers/n