All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/4] mlxsw: Fixes for PTP support
@ 2022-08-12 15:31 Petr Machata
  2022-08-12 15:32 ` [PATCH net 1/4] mlxsw: spectrum_ptp: Fix compilation warnings Petr Machata
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Petr Machata @ 2022-08-12 15:31 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, netdev
  Cc: Ido Schimmel, Danielle Ratson, Amit Cohen, Richard Cochran,
	Petr Machata, mlxsw

This set fixes several issues in mlxsw PTP code.

- Patch #1 fixes compilation warnings.

- Patch #2 adjusts the order of operation during cleanup, thereby
  closing the window after PTP state was already cleaned in the ASIC
  for the given port, but before the port is removed, when the user
  could still in theory make changes to the configuration.

- Patch #3 protects the PTP configuration with a custom mutex, instead
  of relying on RTNL, which is not held in all access paths.

- Patch #4 forbids enablement of PTP only in RX or only in TX. The
  driver implicitly assumed this would be the case, but neglected to
  sanitize the configuration.

Amit Cohen (4):
  mlxsw: spectrum_ptp: Fix compilation warnings
  mlxsw: spectrum: Clear PTP configuration after unregistering the
    netdevice
  mlxsw: spectrum_ptp: Protect PTP configuration with a mutex
  mlxsw: spectrum_ptp: Forbid PTP enablement only in RX or in TX

 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  2 +-
 .../ethernet/mellanox/mlxsw/spectrum_ptp.c    | 30 ++++++++++++++-----
 .../ethernet/mellanox/mlxsw/spectrum_ptp.h    | 18 ++++++-----
 3 files changed, 34 insertions(+), 16 deletions(-)

-- 
2.35.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-15 11:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 15:31 [PATCH net 0/4] mlxsw: Fixes for PTP support Petr Machata
2022-08-12 15:32 ` [PATCH net 1/4] mlxsw: spectrum_ptp: Fix compilation warnings Petr Machata
2022-08-12 15:32 ` [PATCH net 2/4] mlxsw: spectrum: Clear PTP configuration after unregistering the netdevice Petr Machata
2022-08-12 15:32 ` [PATCH net 3/4] mlxsw: spectrum_ptp: Protect PTP configuration with a mutex Petr Machata
2022-08-12 15:32 ` [PATCH net 4/4] mlxsw: spectrum_ptp: Forbid PTP enablement only in RX or in TX Petr Machata
2022-08-15 11:00 ` [PATCH net 0/4] mlxsw: Fixes for PTP support patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.