]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sashal@kernel.org>
Fri, 15 Mar 2024 14:48:16 +0000 (10:48 -0400)
commitd98d364d98d10b79e94b9c383b9ced324404c63c
tree0a16431eb315d5cbc6548a64b16755b223306c55
parentd1f71615dbb305f14f3b756cce015d70d8667549
net/mlx5e: Switch to using _bh variant of of spinlock API in port timestamping NAPI poll context

[ Upstream commit 90502d433c0e7e5483745a574cb719dd5d05b10c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c