net: dsa: bcm_sf2: Implement FDB operations
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 23 Oct 2015 18:38:07 +0000 (11:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Oct 2015 01:14:02 +0000 (18:14 -0700)
commit680060d3e02d175516832e9af058ffe96ecc4cdc
tree7194e4b891e85bfb83ea559a9462c46de8fa1119
parentd1611c3aba11ffa281bdd027aace52f5a370b8c5
net: dsa: bcm_sf2: Implement FDB operations

Add support for the FDB add, delete, and dump operations. The add and
delete operations are implemented using directed ARL operations using
the specified MAC address and consist in a read operation, write and
readback operation.

The dump operation consists in using the ARL search and software
filtering entries which are not for the desired port.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2.h
drivers/net/dsa/bcm_sf2_regs.h