mlxsw: spectrum: Add note about the PTP shaper
authorShalom Toledo <shalomt@mellanox.com>
Thu, 4 Jul 2019 07:07:34 +0000 (10:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:28:57 +0000 (15:28 -0700)
Add note about disabling the PTP shaper when calling to
mlxsw_sp_port_ets_maxrate_set().

Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-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.c

index 755b14b..67133ba 100644 (file)
@@ -3457,8 +3457,9 @@ static int mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port)
                        return err;
        }
 
-       /* Make sure the max shaper is disabled in all hierarchies that
-        * support it.
+       /* Make sure the max shaper is disabled in all hierarchies that support
+        * it. Note that this disables ptps (PTP shaper), but that is intended
+        * for the initial configuration.
         */
        err = mlxsw_sp_port_ets_maxrate_set(mlxsw_sp_port,
                                            MLXSW_REG_QEEC_HIERARCY_PORT, 0, 0,