]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: rework FDB add/del operations
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 10 Aug 2015 13:09:50 +0000 (09:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Aug 2015 19:03:19 +0000 (12:03 -0700)
commit01750667e35661cff3e905f29ab1e4a2b92e9797
treec2f6023f03a7c221f29c8ed68a8f344f99e69727
parent60e72c1734edb1cd2441c648678fba3edafba653
net: dsa: mv88e6xxx: rework FDB add/del operations

Add a mv88e6xxx_atu_entry structure and a low level function for the ATU
Load operation, and provide FDB add and delete wrappers functions.

This implementation handles the eventual trunk mapping. If the related
bit is set, then the ATU data register would contain the trunk ID, and
not the port vector.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h