]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: Add fdb/mdb manipulation
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Fri, 20 Oct 2017 10:19:10 +0000 (12:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:41:30 +0000 (02:41 +0100)
commitc78380692ebb234c769e47a40ca7474fbdfb0862
tree838bfe5e3a287f21838858389cb8ab9041508def
parentd63691d271895c78fff556459c8b1515bd6f084b
net: dsa: lan9303: Add fdb/mdb manipulation

Add functions for managing the lan9303 ALR (Address Logic
Resolution).

Implement DSA methods: port_fdb_add, port_fdb_del, port_mdb_prepare,
port_mdb_add and port_mdb_del.

Since the lan9303 do not offer reading specific ALR entry, the driver
caches all static entries - in a flat table.

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c
drivers/net/dsa/lan9303.h