]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add mlxsw_sp_fid_ops.fdb_clear_offload
authorPetr Machata <petrm@mellanox.com>
Fri, 7 Dec 2018 19:55:15 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 20:59:08 +0000 (12:59 -0800)
commitd992571986d9e02cc06363afb89d9670595f59c1
tree427b1b274171b7d8ca7c2e03ca2905e97df074f2
parent0ba3a8c067a519ad678e5d88efec7840e290eef7
mlxsw: spectrum: Add mlxsw_sp_fid_ops.fdb_clear_offload

If there are any offloaded FDB entries at bridge master of an NVE device
at the time that it's un-offloaded, their offloaded marks need to be
cleared. How that is done depends on whether the bridge in question is
vlan aware. Therefore add a per-FID-type operation.

Implement the operation for the 802.1q and 802.1d bridges.

Add and publish a function mlxsw_sp_fid_fdb_clear_offload() to dispatch
to the new operation according to FID type.

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.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c