OSDN Git Service

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)
commit0620427ea0d6497615fb9313a9e51e8322fcc029
tree838bfe5e3a287f21838858389cb8ab9041508def
parentab335349b85229f58c6d65f058a8c98d2612b920
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