mlxsw: spectrum_switchdev: Process learned VxLAN FDB entries
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Nov 2018 08:02:47 +0000 (08:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Nov 2018 01:10:31 +0000 (17:10 -0800)
commit981f084b36754b4e5179e8a3fbba554ba0183f0a
tree498c343e1265943f1d6dd827360790133f2c79f1
parent3c55bdaca015839ca1d1e5695e7667a9bcfa6e35
mlxsw: spectrum_switchdev: Process learned VxLAN FDB entries

Start processing two new entry types in addition to current ones:
* Learned unicast tunnel entry
* Aged-out unicast tunnel entry

In both cases the device reports on a new {MAC, FID, IP address} tuple
that was learned / aged-out. Based on this notification, the driver
instructs the device to add / delete the entry to / from its database.

The driver also makes sure to notify the bridge and VxLAN drivers about
the new entry.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c