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)
commitfd231c829b252303183d1f2f0c11003908f7bb9a
treec2f6023f03a7c221f29c8ed68a8f344f99e69727
parent2a778e1b58990e15de5cba4badec1fa7ecb87e80
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