summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
diff options
context:
space:
mode:
authorPetr Machata2018-02-27 14:53:46 +0100
committerDavid S. Miller2018-02-27 20:46:27 +0100
commit803335acbe3371f1c0e9dd02f318b16f5abc22f4 (patch)
tree7bbd1d24c2adff07c8bd7a1fadc43ed2f6d2e1df /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
parentmlxsw: spectrum_span: Generalize SPAN support (diff)
downloadkernel-qcow2-linux-803335acbe3371f1c0e9dd02f318b16f5abc22f4.tar.gz
kernel-qcow2-linux-803335acbe3371f1c0e9dd02f318b16f5abc22f4.tar.xz
kernel-qcow2-linux-803335acbe3371f1c0e9dd02f318b16f5abc22f4.zip
mlxsw: Handle config changes pertinent to SPAN
For some netdevices, for which mlxsw offloads mirroring, may have a complex relationship between the declared intent and low-level device configuration. Trying to accurately track which changes might influence offloading decisions is finicky and error-prone. Instead, this patch introduces a function mlxsw_sp_span_entry_respin, which re-queries the configuration anew and, if different, removes the existing offloads and installs new ones. Call this function strategically at event handlers that might influence the mirroring configuration. Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c')
0 files changed, 0 insertions, 0 deletions