aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2020-01-20 09:52:53 +0200
committerDavid S. Miller <davem@davemloft.net>2020-01-20 13:25:46 +0100
commit3a3e627ce0ac0fe15e0a011540a1f7c96bf8a07b (patch)
tree92d80c5f35aa48d0ac944040df7cccf816dcd0e5 /drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h
parentmlxsw: spectrum: Fix SPAN egress mirroring buffer size for Spectrum-2 (diff)
downloadlinux-3a3e627ce0ac0fe15e0a011540a1f7c96bf8a07b.tar.xz
linux-3a3e627ce0ac0fe15e0a011540a1f7c96bf8a07b.zip
spectrum: Add a delayed work to update SPAN buffsize according to speed
When PUDE event is handled and the link is up, update the port SPAN buffer size according to the current speed. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h
index 5e04252f2a11..59724335525f 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h
@@ -74,5 +74,6 @@ void mlxsw_sp_span_entry_invalidate(struct mlxsw_sp *mlxsw_sp,
struct mlxsw_sp_span_entry *span_entry);
int mlxsw_sp_span_port_mtu_update(struct mlxsw_sp_port *port, u16 mtu);
+void mlxsw_sp_span_speed_update_work(struct work_struct *work);
#endif