linux_old1/drivers/net/dsa
Vivien Didelot be1faa92e8 net: dsa: mv88e6xxx: fix port VLAN maps
Currently the port based VLAN maps should be configured to allow every
port to egress frames on all other ports, except themselves.

The debugfs interface shows that they are misconfigured. For instance, a
7-port switch has the following content in the related register 0x06:

       GLOBAL GLOBAL2 SERDES   0    1    2    3    4    5    6
    ...
    6:  1fa4    1f0f       4   7f   7e   7d   7c   7b   7a   79
    ...

This means that port 3 is allowed to talk to port 2-6, but cannot talk
to ports 0 and 1. With this fix, port 3 can correctly talk to all ports
except 3 itself:

       GLOBAL GLOBAL2 SERDES   0    1    2    3    4    5    6
    ...
    6:  1fa4    1f0f       4   7e   7d   7b   77   6f   5f   3f
    ...

Fixes: ede8098d0f ("net: dsa: mv88e6xxx: bridges do not need an FID")
Reported-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-01-29 19:41:27 -08:00
..
Kconfig dsa: mv88e6352/mv88e6xxx: Add support for Marvell 88E6320 and 88E6321 2015-07-09 14:34:23 -07:00
Makefile net: dsa: Add support for Marvell 88E6352 2014-10-30 14:54:10 -04:00
bcm_sf2.c net: dsa: bcm_sf2: Unhardcode port numbers 2015-10-26 18:23:59 -07:00
bcm_sf2.h net: dsa: bcm_sf2: Unhardcode port numbers 2015-10-26 18:23:59 -07:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Implement FDB operations 2015-10-26 18:14:02 -07:00
mv88e6xxx.c net: dsa: mv88e6xxx: fix port VLAN maps 2016-01-29 19:41:27 -08:00
mv88e6xxx.h dsa: mv88e6xxx: Add Second back of statistics 2015-12-23 22:17:00 -05:00
mv88e6060.c net: dsa: mv88e6060: replace magic values with register defines 2015-11-15 20:16:16 -05:00
mv88e6060.h net: dsa: mv88e6060: add register defines header file 2015-11-15 20:16:16 -05:00
mv88e6123_61_65.c net: dsa: mv88e6xxx: lookup switch name 2015-11-02 15:54:13 -05:00
mv88e6131.c net: dsa: mv88e6xxx: lookup switch name 2015-11-02 15:54:13 -05:00
mv88e6171.c net: dsa: mv88e6xxx: isolate unbridged ports 2015-11-05 13:37:23 -05:00
mv88e6352.c net: dsa: mv88e6xxx: isolate unbridged ports 2015-11-05 13:37:23 -05:00