]> 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)
commitd073f1cf9d97bb813607ace90367ec6f504e1703
treed380c17ebc04ae95b9b307f51825dc475fadcf79
parent59de0b4d053207e15766a9c963dcff6840c118bf
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