linux/drivers/net/dsa
Vivien Didelot 601aeed371 net: dsa: mv88e6xxx: fix port egress flooding mode
The Marvell switch ports can be configured to allow or prevent egress of
frames with an unknown unicast or multicast destination address.

Some switch chips such as 88E6095 and 88E6185 have two disjoint bits in
Port Control Register (0x04) bit 2 "Forward Unknown" (for unicast) and
Port Control 2 Register (0x08) bit 6 "Default Forward" (for multicast).

Other chips such as 88E6085, 88E6123, 88E6352, and 88E6390 have a 2-bit
value in Port Control Register (0x04) bits 3:2 "EgressFloods".

The current code does not fully implement the disjoint bits variant and
assigns incorrect ones to some chip models. Fix that with two
implementation references (6185 and 6352 that I currently have) of a
port_set_egress_floods operation (as named in datasheets).

Old chips such as 88E6060 don't have egress flooding mode, so don't
error out if the operation is not provided.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-12 23:54:07 -07:00
..
b53 net: dsa: b53: Add support for port mirroring 2017-01-30 15:55:47 -05:00
mv88e6xxx net: dsa: mv88e6xxx: fix port egress flooding mode 2017-03-12 23:54:07 -07:00
bcm_sf2.c net: dsa: bcm_sf2: Add support for port mirroring 2017-01-30 15:55:47 -05:00
bcm_sf2.h net: dsa: bcm_sf2: Add support for ethtool::rxnfc 2017-01-30 14:49:58 -05:00
bcm_sf2_cfp.c net: dsa: bcm_sf2: cleanup bcm_sf2_cfp_rule_get() a little 2017-02-08 13:27:06 -05:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Add CFP registers definitions 2017-01-30 14:49:58 -05:00
Kconfig net-next: dsa: add new driver for qca8xxx family 2016-09-16 04:31:51 -04:00
Makefile net: dsa: bcm_sf2: Fix build module 2017-01-31 13:36:59 -05:00
mv88e6060.c net: dsa: Make dsa_switch_ops const 2017-01-09 15:44:50 -05:00
mv88e6060.h net: dsa: Keep the mii bus and address in the private structure 2016-04-13 18:15:23 -04:00
qca8k.c net: dsa: qca8k: use dsa_port's bridge pointer 2017-01-29 18:42:46 -05:00
qca8k.h net: dsa: qca8k: use dsa_port's bridge pointer 2017-01-29 18:42:46 -05:00