]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5e: Fix SQ wake logic in ptp napi_poll context
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Wed, 22 Feb 2023 00:18:48 +0000 (16:18 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 23 May 2023 05:38:05 +0000 (22:38 -0700)
commit7aa50380191635e5897a773f272829cc961a2be5
tree22432afaf8ad5184d97682933d3c6e19709b7332
parent691c041bf20899fc13c793f92ba61ab660fa3a30
net/mlx5e: Fix SQ wake logic in ptp napi_poll context

Check in the mlx5e_ptp_poll_ts_cq context if the ptp tx sq should be woken
up. Before change, the ptp tx sq may never wake up if the ptp tx ts skb
fifo is full when mlx5e_poll_tx_cq checks if the queue should be woken up.

Fixes: 1880bc4e4a96 ("net/mlx5e: Add TX port timestamp support")
Signed-off-by: Rahul Rameshbabu <rrameshbabu@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/txrx.h
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c