]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: unlock DSA and CPU ports
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 14 Apr 2016 18:42:07 +0000 (14:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Apr 2016 23:07:10 +0000 (19:07 -0400)
commit4a2d5662db0e9a207d8299d2804a8c448888eb53
treef51b9e50b832fa2f0d21bcbb6227faa13a12dc83
parent24785bd442e7d50b5e6e50c8765c9c25b8529573
net: dsa: mv88e6xxx: unlock DSA and CPU ports

Locking a port generates an hardware interrupt when a new SA address is
received. This enables CPU directed learning, which is needed for 802.1X
MAC authentication.

To disable automatic learning on a port, the only configuration needed
is to set its Port Association Vector to all zero.

Clear PAV when SA learning should be disabled instead of locking a port.

Fixes: b9c396332e90 ("net: dsa: mv88e6xxx: disable SA learning for DSA and CPU ports")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c