]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix select queue to consider SKBTX_HW_TSTAMP
authorAya Levin <ayal@nvidia.com>
Mon, 19 Apr 2021 08:58:31 +0000 (11:58 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 10 Jun 2021 00:20:05 +0000 (17:20 -0700)
commitb4031586a61e922884a2466380555389599d3e6c
tree69ed02ac3df1fb17163113cb1f4176e1c71eaa1f
parent84a450bae33baefe4a813c8b7244e64ebf4ec732
net/mlx5e: Fix select queue to consider SKBTX_HW_TSTAMP

Steering packets to PTP-SQ should be done only if the SKB has
SKBTX_HW_TSTAMP set in the tx_flags. While here, take the function into
a header and inline it.
Set the whole condition to select the PTP-SQ to unlikely.

Fixes: 1d0a9bfccfd1 ("net/mlx5e: Add states to PTP channel")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.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_tx.c