Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1364777 > unrolled thread

[PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging

Started byVivien Didelot <vivien.didelot@savoirfairelinux.com>
First post2016-03-25 18:10 +0100
Last post2016-03-25 20:10 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-25 18:10 +0100
    Re: [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-25 18:30 +0100
      Re: [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware  bridging David Miller <davem@davemloft.net> - 2016-03-25 20:10 +0100

#1364777 — [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging

FromVivien Didelot <vivien.didelot@savoirfairelinux.com>
Date2016-03-25 18:10 +0100
Subject[PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging
Message-ID<rgDpf-4Wl-5@gated-at.bofh.it>
The 88E6185 switch also has a MapDA bit in its Port Control 2 register.
When this bit is cleared, all frames are sent out to the CPU port.

Set this bit to rely on ATU hits and direct the frame out of the correct
ports, and thus enable hardware bridging.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
---
 drivers/net/dsa/mv88e6xxx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c
index 4332b15..85ed3e2 100644
--- a/drivers/net/dsa/mv88e6xxx.c
+++ b/drivers/net/dsa/mv88e6xxx.c
@@ -2586,7 +2586,8 @@ static int mv88e6xxx_setup_port(struct dsa_switch *ds, int port)
 	reg = 0;
 	if (mv88e6xxx_6352_family(ds) || mv88e6xxx_6351_family(ds) ||
 	    mv88e6xxx_6165_family(ds) || mv88e6xxx_6097_family(ds) ||
-	    mv88e6xxx_6095_family(ds) || mv88e6xxx_6320_family(ds))
+	    mv88e6xxx_6095_family(ds) || mv88e6xxx_6320_family(ds) ||
+	    mv88e6xxx_6185_family(ds))
 		reg = PORT_CONTROL_2_MAP_DA;
 
 	if (mv88e6xxx_6352_family(ds) || mv88e6xxx_6351_family(ds) ||
-- 
2.7.4

[toc] | [next] | [standalone]


#1364788

FromVivien Didelot <vivien.didelot@savoirfairelinux.com>
Date2016-03-25 18:30 +0100
Message-ID<rgDID-55j-15@gated-at.bofh.it>
In reply to#1364777
Hi,

Vivien Didelot <vivien.didelot@savoirfairelinux.com> writes:

> The 88E6185 switch also has a MapDA bit in its Port Control 2 register.
> When this bit is cleared, all frames are sent out to the CPU port.
>
> Set this bit to rely on ATU hits and direct the frame out of the correct
> ports, and thus enable hardware bridging.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>

Andrew, I sent this patch too fast. It requires a proper support of the
ATU in order to populate the FDB correctly. I send that soon.

David, please ignore this patch for the moment.

Thanks,
Vivien

[toc] | [prev] | [next] | [standalone]


#1364806 — Re: [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging

FromDavid Miller <davem@davemloft.net>
Date2016-03-25 20:10 +0100
SubjectRe: [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging
Message-ID<rgFhn-6lo-7@gated-at.bofh.it>
In reply to#1364788
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Date: Fri, 25 Mar 2016 13:20:30 -0400

> David, please ignore this patch for the moment.

Ok.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web