net/mlx5e: Switch to using _bh variant of of spinlock API in port timestamping NAPI...
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Thu, 8 Feb 2024 23:09:34 +0000 (15:09 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 2 Mar 2024 07:02:27 +0000 (23:02 -0800)
commit90502d433c0e7e5483745a574cb719dd5d05b10c
tree4d2118dd454b26152e51f8e1b2f682e596eefe07
parentb7cf07586c40f926063d4d09f7de28ff82f62b2a
net/mlx5e: Switch to using _bh variant of of spinlock API in port timestamping NAPI poll context

The NAPI poll context is a softirq context. Do not use normal spinlock API
in this context to prevent concurrency issues.

Fixes: 3178308ad4ca ("net/mlx5e: Make tx_port_ts logic resilient to out-of-order CQEs")
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
CC: Vadim Fedorenko <vadfed@meta.com>
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c