diff options
author | Jiri Pirko <jiri@mellanox.com> | 2020-01-20 09:52:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-20 13:25:46 +0100 |
commit | 3a3e627ce0ac0fe15e0a011540a1f7c96bf8a07b (patch) | |
tree | 92d80c5f35aa48d0ac944040df7cccf816dcd0e5 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | mlxsw: spectrum: Fix SPAN egress mirroring buffer size for Spectrum-2 (diff) | |
download | linux-dev-3a3e627ce0ac0fe15e0a011540a1f7c96bf8a07b.tar.xz linux-dev-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.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index 39c3d3ee79a6..5f3b74360dc8 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -294,6 +294,9 @@ struct mlxsw_sp_port { struct mlxsw_sp_ptp_port_stats stats; } ptp; u8 split_base_local_port; + struct { + struct delayed_work speed_update_dw; + } span; }; struct mlxsw_sp_port_type_speed_ops { |