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


Groups > linux.kernel > #1368739

[PATCH net-next v2 5/6] net: dsa: mv88e6xxx: map destination addresses for 6185

From Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Newsgroups linux.kernel
Subject [PATCH net-next v2 5/6] net: dsa: mv88e6xxx: map destination addresses for 6185
Date 2016-03-31 23:00 +0200
Message-ID <riRRa-291-57@gated-at.bofh.it> (permalink)
References <riRR7-291-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 address databases (ATU) hits and direct frames
out of the correct ports, and thus allow 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 52c3e17..56f5657 100644
--- a/drivers/net/dsa/mv88e6xxx.c
+++ b/drivers/net/dsa/mv88e6xxx.c
@@ -2455,7 +2455,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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next v2 0/6] net: dsa: mv88e6131: HW bridging support for 6185 Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-31 23:00 +0200
  [PATCH net-next v2 2/6] net: dsa: mv88e6xxx: protect FID registers access Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-31 23:00 +0200
  [PATCH net-next v2 3/6] net: dsa: mv88e6xxx: variable number of databases Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-31 23:00 +0200
  [PATCH net-next v2 1/6] net: dsa: mv88e6xxx: protect SID register access Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-31 23:00 +0200
  [PATCH net-next v2 4/6] net: dsa: mv88e6xxx: support 256 databases Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-31 23:00 +0200
  [PATCH net-next v2 5/6] net: dsa: mv88e6xxx: map destination addresses for 6185 Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-31 23:00 +0200
  [PATCH net-next v2 6/6] net: dsa: mv88e6131: enable hardware bridging Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-03-31 23:00 +0200
  Re: [PATCH net-next v2 0/6] net: dsa: mv88e6131: HW bridging support  for 6185 Andrew Lunn <andrew@lunn.ch> - 2016-04-01 14:50 +0200
    Re: [PATCH net-next v2 0/6] net: dsa: mv88e6131: HW bridging support for 6185 Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-04-01 15:40 +0200

csiph-web