diff options
author | Petr Machata <petrm@mellanox.com> | 2018-12-07 20:55:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-07 21:59:08 +0100 |
commit | 8a5969d8a83d86f3542355eedcad67d47feafdab (patch) | |
tree | a6dc619dbb27695ba78669827ba2120063ee2ea1 /tools/testing | |
parent | mlxsw: spectrum: Add mlxsw_sp_fid_ops.fdb_clear_offload (diff) | |
download | linux-8a5969d8a83d86f3542355eedcad67d47feafdab.tar.xz linux-8a5969d8a83d86f3542355eedcad67d47feafdab.zip |
mlxsw: spectrum_nve: Un/offload FDB on nve_fid_disable/enable
Any existing NVE FDB entries need to be offloaded when NVE is enabled
for a given FID. Recent patches have added fdb_replay op for this, so
just invoke it from mlxsw_sp_nve_fid_enable().
When NVE is disabled on a FID, any existing FDB offloaded marks need to
be cleared on NVE device as well as on its bridge master. An op to
handle this, fdb_clear_offload, has been added to FID ops and NVE ops in
previous patches. Add code to resolve the NVE device, NVE type, and
dispatch to both fdb_clear_offload ops.
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>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions