]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add states to PTP channel
authorAya Levin <ayal@nvidia.com>
Mon, 11 Jan 2021 14:45:21 +0000 (16:45 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 30 Mar 2021 04:21:50 +0000 (21:21 -0700)
commit734562c5193352330e96579d903ef0dc1131c6f3
tree344f445e46050631bda890ba7d777adc371d04a7
parentd0a88d0ff5e5ad23f69932e56c8f6cd1ffed1b80
net/mlx5e: Add states to PTP channel

Add PTP TX state to PTP channel, which indicates the corresponding SQ is
available. Further patches in the set extend PTP channel to include RQ.
The PTP channel state will be used for separation and coexistence of RX
and TX PTP. Enhance conditions to verify the TX PTP state is set.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.h
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c