]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23c5b4aef84c1b0101b8a942b5867baaa49a19ee
treed7a8b015de25e78dbcdaa71f2d0a6a6302ce2048
parent2dab43e4ab22c06e39ed6e694eb251369e0ebe91
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