Re: [PATCH v2 net-next v2 4/4] net: dsa: mv88e6xxx: add PPU operations

2016-12-06 Thread Stefan Eichenberger
On 5 December 2016 at 23:18, Vivien Didelot wrote: > Stefan Eichenberger writes: > >> Hi Vivien, >> >> On Mon, Dec 05, 2016 at 11:27:03AM -0500, Vivien Didelot wrote: >>> @@ -3266,6 +3220,8 @@ static const struct mv88e6xxx_ops mv88e6097_

Re: [PATCH v2 net-next v2 3/4] net: dsa: mv88e6xxx: add a soft reset operation

2016-12-05 Thread Stefan Eichenberger
Hi Vivien On Mon, Dec 05, 2016 at 11:27:02AM -0500, Vivien Didelot wrote: > static const struct mv88e6xxx_ops mv88e6097_ops = { > @@ -3285,6 +3266,7 @@ static const struct mv88e6xxx_ops mv88e6097_ops = { > .g1_set_cpu_port = mv88e6095_g1_set_cpu_port, > .g1_set_egress_port = mv88e6095

Re: [PATCH v2 net-next v2 4/4] net: dsa: mv88e6xxx: add PPU operations

2016-12-05 Thread Stefan Eichenberger
Hi Vivien, On Mon, Dec 05, 2016 at 11:27:03AM -0500, Vivien Didelot wrote: > @@ -3266,6 +3220,8 @@ static const struct mv88e6xxx_ops mv88e6097_ops = { > .g1_set_cpu_port = mv88e6095_g1_set_cpu_port, > .g1_set_egress_port = mv88e6095_g1_set_egress_port, > .mgmt_rsvd2cpu = mv88e609

[PATCH net-next] net: dsa: mv88e6xxx: Use EDSA on mv88e6097

2016-12-05 Thread Stefan Eichenberger
Use DSA_TAG_PROTO_EDSA as tag_protocol for the mv88e6097. The initialisation was missing before. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index

[PATCH net-next 0/2] Fix support for the MV88E6097

2016-11-25 Thread Stefan Eichenberger
This patchset fixes the following two issues for the MV88E6097: - Add missing definition of g1_irqs - Add missing comment Stefan Eichenberger (2): net: dsa: mv88e6xxx: add g1_irqs definition for MV88E6097 net: dsa: mv88e6xxx: add missing comment for MV88E6097 drivers/net/dsa/mv88e6xxx

[PATCH net-next 1/2] net: dsa: mv88e6xxx: add g1_irqs definition for MV88E6097

2016-11-25 Thread Stefan Eichenberger
Add the missing definition of g1_irqs for MV88E6097. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index b14b3d5..7002d0f 100644 --- a/drivers/net

[PATCH net-next 2/2] net: dsa: mv88e6xxx: add missing comment for MV88E6097

2016-11-25 Thread Stefan Eichenberger
Add a missing comment for the MV88E6097 because of unification. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 7002d0f..68eb8fc 100644 --- a

[PATCH net-next 0/2] Fix support for the MV88E6097

2016-11-25 Thread Stefan Eichenberger
This patchset fixes the following two issues for the MV88E6097: - Add missing definition of g1_irqs - Add missing comment Stefan Eichenberger (2): net: dsa: mv88e6xxx: add g1_irqs definition for MV88E6097 net: dsa: mv88e6xxx: add missing comment for MV88E6097 drivers/net/dsa/mv88e6xxx

Re: [PATCH v2] net: dsa: mv88e6xxx: add MV88E6097 switch

2016-11-24 Thread Stefan Eichenberger
Hi David On Thu, Nov 24, 2016 at 03:29:21PM -0500, David Miller wrote: > From: Stefan Eichenberger > Date: Tue, 22 Nov 2016 17:47:21 +0100 > > > Add support for the MV88E6097 switch. The change was tested on an Armada > > based platform with a MV88E6097 switch. > >

[PATCH net-next v2 2/2] net: dsa: mv88e6xxx: add MV88E6097 switch

2016-11-23 Thread Stefan Eichenberger
Add support for the MV88E6097 switch. The change was tested on an Armada based platform with a MV88E6097 switch. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 28 drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 2 ++ 2 files changed, 30

[PATCH net-next v2 1/2] net: dsa: mv88e6xxx: enable EDSA on mv88e6097

2016-11-23 Thread Stefan Eichenberger
EDSA is currently disabled on mv88e6097 devices, this commit enables it. Signed-off-by: Stefan Eichenberger Reviewed-by: Andrew Lunn Reviewed-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa

[PATCH net-next v2 0/2] Add support for the MV88e6097

2016-11-23 Thread Stefan Eichenberger
This patchset will add support for the MV88E6097 DSA switch and enable EDSA on MV88E6097 family devices. Changes since v1: - Add missing g1_irqs = 8 - Add missing comment after mv88e6097_ops - Change patch order Stefan Eichenberger (2): net: dsa: mv88e6xxx: enable EDSA on mv88e6097 net: dsa

Re: [PATCH 1/2] net: dsa: mv88e6xxx: add MV88E6097 switch

2016-11-23 Thread Stefan Eichenberger
On Wed, Nov 23, 2016 at 07:10:16PM +0100, Andrew Lunn wrote: > > + [MV88E6097] = { > > + .prod_num = PORT_SWITCH_ID_PROD_NUM_6097, > > + .family = MV88E6XXX_FAMILY_6097, > > + .name = "Marvell 88E6097/88E6097F", > > + .num_databases = 4096, > > +

[PATCH 2/2] net: dsa: mv88e6xxx: enable EDSA on mv88e6097

2016-11-23 Thread Stefan Eichenberger
EDSA is currently disabled on mv88e6097 devices, this commit enables it. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx

[PATCH 1/2] net: dsa: mv88e6xxx: add MV88E6097 switch

2016-11-23 Thread Stefan Eichenberger
Add support for the MV88E6097 switch. The change was tested on an Armada based platform with a MV88E6097 switch. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 26 ++ drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 2 ++ 2 files changed, 28

[PATCH net-next 0/2] Add support for the MV88e6097

2016-11-23 Thread Stefan Eichenberger
This patchset will add support for the MV88E6097 DSA switch and enable EDSA on MV88E6097 family devices. Stefan Eichenberger (2): net: dsa: mv88e6xxx: add MV88E6097 switch net: dsa: mv88e6xxx: enable EDSA on mv88e6097 drivers/net/dsa/mv88e6xxx/chip.c | 26

Re: [PATCH v2] net: dsa: mv88e6xxx: forward unknown mc packets on mv88e6097

2016-11-23 Thread Stefan Eichenberger
On Wed, Nov 23, 2016 at 06:32:30PM +0100, Andrew Lunn wrote: > On Wed, Nov 23, 2016 at 06:14:41PM +0100, Stefan Eichenberger wrote: > > On Wed, Nov 23, 2016 at 05:59:49PM +0100, Andrew Lunn wrote: > > > On Wed, Nov 23, 2016 at 05:54:40PM +0100, Stefan Eichenberger wrote: &g

Re: [PATCH v2] net: dsa: mv88e6xxx: forward unknown mc packets on mv88e6097

2016-11-23 Thread Stefan Eichenberger
On Wed, Nov 23, 2016 at 05:59:49PM +0100, Andrew Lunn wrote: > On Wed, Nov 23, 2016 at 05:54:40PM +0100, Stefan Eichenberger wrote: > > Packets with unknown destination addresses are not forwarded to the cpu > > port on mv88e6097 based switches (e.g. MV88E6097) at the moment.

[PATCH v3] net: dsa: mv88e6xxx: enable EDSA on mv88e6097

2016-11-23 Thread Stefan Eichenberger
EDSA is currently disabled on mv88e6097 devices, this commit enables it. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx

[PATCH v2] net: dsa: mv88e6xxx: forward unknown mc packets on mv88e6097

2016-11-23 Thread Stefan Eichenberger
Packets with unknown destination addresses are not forwarded to the cpu port on mv88e6097 based switches (e.g. MV88E6097) at the moment. This commit enables PORT_CONTROL_FORWARD_UNKNOWN_MC for this family. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 4 1 file

Re: [PATCH] net: dsa: mv88e6xxx: egress all frames

2016-11-23 Thread Stefan Eichenberger
Hi Vivien On Wed, Nov 23, 2016 at 10:59:13AM -0500, Vivien Didelot wrote: > Hi Stefan, > > Stefan Eichenberger writes: > > >> Now, the different families are not 100% compatible with each > >> other. We never had access to a 6097, so it has not been tested >

Re: [PATCH] net: dsa: mv88e6xxx: egress all frames

2016-11-23 Thread Stefan Eichenberger
On Tue, Nov 22, 2016 at 08:02:06PM +0100, Andrew Lunn wrote: > On Tue, Nov 22, 2016 at 07:37:33PM +0100, Stefan Eichenberger wrote: > > Hi Andrew > > > > On Tue, Nov 22, 2016 at 04:03:30PM +0100, Andrew Lunn wrote: > > > On Tue, Nov 22, 2016 at 11:39:44AM +0

Re: [PATCH] net: dsa: mv88e6xxx: egress all frames

2016-11-23 Thread Stefan Eichenberger
Hi Vivien On Tue, Nov 22, 2016 at 05:15:25PM -0500, Vivien Didelot wrote: > Hi Andrew, Stefan, > > Andrew Lunn writes: > > > What you might find useful is > > > > https://github.com/vivien/linux.git 161b96bd7d16d21b0f046c935b70c3b2d277ccc2 > > > > although it might need some changes for recent

Re: [PATCH] net: dsa: mv88e6xxx: egress all frames

2016-11-22 Thread Stefan Eichenberger
Hi Andrew On Tue, Nov 22, 2016 at 04:03:30PM +0100, Andrew Lunn wrote: > On Tue, Nov 22, 2016 at 11:39:44AM +0100, Stefan Eichenberger wrote: > > Egress multicast and egress unicast is only enabled for CPU/DSA ports > > but for switching operation it seems it should be enable

[PATCH v2] net: dsa: mv88e6xxx: add MV88E6097 switch

2016-11-22 Thread Stefan Eichenberger
Add support for the MV88E6097 switch. The change was tested on an Armada based platform with a MV88E6097 switch. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 26 ++ drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 2 ++ 2 files changed, 28

[PATCH] net: dsa: mv88e6xxx: egress all frames

2016-11-22 Thread Stefan Eichenberger
packets were not forwarded, therefore ARP requests were not resolved, and no connection could be established. If no bridge is configured we do not forward unicast and multicast packets because the VLAN mapping is active. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 9

[PATCH] net: dsa: mv88e6xxx: add MV88E6097 switch

2016-11-22 Thread Stefan Eichenberger
Add support for the MV88E6097 switch. The change was tested on an Armada based platform with a MV88E6097 switch. Signed-off-by: Stefan Eichenberger --- drivers/net/dsa/mv88e6xxx/chip.c | 19 +++ drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 2 ++ 2 files changed, 21 insertions