diff options
author | Shalom Toledo | 2019-07-04 09:07:39 +0200 |
---|---|---|
committer | David S. Miller | 2019-07-06 00:28:57 +0200 |
commit | 5fc1733897bff10b2a9d1fb1eae775c96cefa333 (patch) | |
tree | e7dbe75d1da0531c8b00fa72bc04fbead100ffb1 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | mlxsw: spectrum_ptp: Enable/disable PTP shaper on a port when getting HWTSTAM... (diff) | |
download | kernel-qcow2-linux-5fc1733897bff10b2a9d1fb1eae775c96cefa333.tar.gz kernel-qcow2-linux-5fc1733897bff10b2a9d1fb1eae775c96cefa333.tar.xz kernel-qcow2-linux-5fc1733897bff10b2a9d1fb1eae775c96cefa333.zip |
mlxsw: spectrum: Set up PTP shaper when port status has changed
When getting port up down event (PUDE), change the PTP shaper
configuration based on hardware time stamping on/off and the port's
speed.
Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Acked-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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index c21cd1a425c7..abbb563db440 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -267,6 +267,7 @@ struct mlxsw_sp_port { struct mlxsw_sp_acl_block *ing_acl_block; struct mlxsw_sp_acl_block *eg_acl_block; struct { + struct delayed_work shaper_dw; struct hwtstamp_config hwtstamp_config; u16 ing_types; u16 egr_types; |