]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8dca01b469dcc71c82cf224e20dca83e63a9f4c
tree7194e4b891e85bfb83ea559a9462c46de8fa1119
parent702a8d9fbbd6434c70a6baebdfbd0b7a4c0ae68d
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