mbox series

[net,v2,0/2] mlx5: bugfixes for ptp fifo queue

Message ID 20230124000836.20523-1-vfedorenko@novek.ru (mailing list archive)
Headers show
Series mlx5: bugfixes for ptp fifo queue | expand

Message

Vadim Fedorenko Jan. 24, 2023, 12:08 a.m. UTC
From: Vadim Fedorenko <vadfed@meta.com>

Simple FIFO implementation for PTP queue has several bug which lead to
use-after-free and skb leaks. This series fixes the issues and adds new
counters of out-of-order CQEs for this queue.

v1 -> v2:
  Update Fixes tag to proper commit.
  Change debug line to avoid double print of function name

Vadim Fedorenko (2):
  mlx5: fix possible ptp queue fifo overflow
  mlx5: fix skb leak while fifo resync

 .../net/ethernet/mellanox/mlx5/core/en/ptp.c  | 29 ++++++++++++++-----
 .../net/ethernet/mellanox/mlx5/core/en/txrx.h |  6 +++-
 .../ethernet/mellanox/mlx5/core/en_stats.c    |  2 ++
 .../ethernet/mellanox/mlx5/core/en_stats.h    |  2 ++
 4 files changed, 31 insertions(+), 8 deletions(-)