OSDN Git Service

mlxsw: spectrum_nve: Add mlxsw_sp_nve_ops.fdb_clear_offload
authorPetr Machata <petrm@mellanox.com>
Fri, 7 Dec 2018 19:55:14 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 20:59:08 +0000 (12:59 -0800)
commitb73ef0e0ee30e14104f1eb19471df462ccaae4b3
treeb54ae0bb8c4f66dd5964ccc37afe171c6db84206
parenta6ef5a48a32fe87af947e22973a409870bc63d0d
mlxsw: spectrum_nve: Add mlxsw_sp_nve_ops.fdb_clear_offload

If there are any offloaded FDB entries at an NVE device at the time that
it's un-offloaded, their offloaded marks need to be cleared. How that is
done depends on NVE device type, and therefore add a per-NVE-type
operation.

Implement the operation for the sole NVE device type currently supported
by mlxsw, VXLAN.

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