summaryrefslogtreecommitdiff
path: root/drivers/virtio
diff options
context:
space:
mode:
authorRahul Rameshbabu <rrameshbabu@nvidia.com>2023-11-14 13:58:42 -0800
committerJakub Kicinski <kuba@kernel.org>2023-11-15 22:34:31 -0800
commit92214be5979c0961a471b7eaaaeacab41bdf456c (patch)
tree3eef4735005b9e9639c28ccb0c9f66463550f80a /drivers/virtio
parent7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167 (diff)
downloadlwn-92214be5979c0961a471b7eaaaeacab41bdf456c.tar.gz
lwn-92214be5979c0961a471b7eaaaeacab41bdf456c.zip
net/mlx5e: Update doorbell for port timestamping CQ before the software counter
Previously, mlx5e_ptp_poll_ts_cq would update the device doorbell with the incremented consumer index after the relevant software counters in the kernel were updated. In the mlx5e_sq_xmit_wqe context, this would lead to either overrunning the device CQ or exceeding the expected software buffer size in the device CQ if the device CQ size was greater than the software buffer size. Update the relevant software counter only after updating the device CQ consumer index in the port timestamping napi_poll context. Log: mlx5_core 0000:08:00.0: cq_err_event_notifier:517:(pid 0): CQ error on CQN 0x487, syndrome 0x1 mlx5_core 0000:08:00.0 eth2: mlx5e_cq_error_event: cqn=0x000487 event=0x04 Fixes: 1880bc4e4a96 ("net/mlx5e: Add TX port timestamp support") Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Link: https://lore.kernel.org/r/20231114215846.5902-12-saeed@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions