]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Set up PTP shaper when port status has changed
authorShalom Toledo <shalomt@mellanox.com>
Thu, 4 Jul 2019 07:07:39 +0000 (10:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:28:57 +0000 (15:28 -0700)
commitd3f9ee95945edbbdc743276bd7e39bc0e1ddb0fb
treee7dbe75d1da0531c8b00fa72bc04fbead100ffb1
parent7e9846bb37b1ff01fdc93a4d4b0a44e7cf5d741c
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h