net/mlx5e: Add PTP Flow Steering support
authorAya Levin <ayal@nvidia.com>
Tue, 16 Feb 2021 10:32:48 +0000 (12:32 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 30 Mar 2021 04:21:53 +0000 (21:21 -0700)
commite5fe49465d463ca6c029869e42e9ba5e895cce02
treed7a8b015de25e78dbcdaa71f2d0a6a6302ce2048
parent0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6
net/mlx5e: Add PTP Flow Steering support

When opening PTP channel with MLX5E_PTP_STATE_RX set, add the
corresponding flow steering rules. Capture UDP packets with destination
port 319 and L2 packets with ethertype 0x88F7 and steer them into the RQ
of the PTP channel.
Add API that manages the flow steering rules to be used in the following
patches via safe_reopen_channels mechanism.

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/fs.h
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_fs.c