]> 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)
commitbc03fb4de1a72f8e8c53602daf3346b90c768b24
treed7a8b015de25e78dbcdaa71f2d0a6a6302ce2048
parent76b6f06958a1b1aa03b399481d159f3ed0126377
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