]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ptp: Set the PTP shaper parameters
authorShalom Toledo <shalomt@mellanox.com>
Thu, 4 Jul 2019 07:07:36 +0000 (10:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:28:57 +0000 (15:28 -0700)
commit39e12d82620d0fcba1d7588996e09ea5736ecfc4
treed380c17ebc04ae95b9b307f51825dc475fadcf79
parent9a88953634d9777b9865d62f28ac617fd554572f
mlxsw: spectrum_ptp: Set the PTP shaper parameters

Set the PTP shaper parameters during the ptp_init(). For different
speeds, there are different parameters.

When the port's speed changes and PTP shaper is enabled, the firmware
changes the ETS shaper values according to the PTP shaper parameters for
this new speed.

The PTP shaper parameters array is left empty for now, will be filled in
a follow-up patch.

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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c