]> 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)
commitb7c2c1f6c0d8dad95930641b04dad0c72c53507a
tree7194e4b891e85bfb83ea559a9462c46de8fa1119
parent7283dfae0ac0b36d364d1634253c1c238b54c53b
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