From patchwork Tue Jan 24 00:08:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Fedorenko X-Patchwork-Id: 13113230 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB94DC05027 for ; Tue, 24 Jan 2023 00:09:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231523AbjAXAJG (ORCPT ); Mon, 23 Jan 2023 19:09:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjAXAJF (ORCPT ); Mon, 23 Jan 2023 19:09:05 -0500 Received: from novek.ru (unknown [213.148.174.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A6EE045 for ; Mon, 23 Jan 2023 16:09:04 -0800 (PST) Received: from nat1.ooonet.ru (gw.zelenaya.net [91.207.137.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id 51341500084; Tue, 24 Jan 2023 03:03:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru 51341500084 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1674518624; bh=JjIBPkj2InWWlEbPQ2ogc3r7XzAT+V1qihIZit83iBg=; h=From:To:Cc:Subject:Date:From; b=v3lCXmFRMOcrCIFA9QQhjsVksQjCgbCLwM8TWKCsw00wTyQrq7ZXg25LgSnSNPcIU yHt7VNKZqWseeS1pNKlj3BZ1Hsr6KnrQnMSqG25AqESYhVk4IPcQwI1vBRyOQQEF/2 DBFtyZKYS2v7E+zrZM0EQm+Rl3hGBwmsbV/yEUP0= From: Vadim Fedorenko To: Vadim Fedorenko , Aya Levin , Saeed Mahameed , Jakub Kicinski , Gal Pressman Cc: Vadim Fedorenko , netdev@vger.kernel.org Subject: [PATCH net v2 0/2] mlx5: bugfixes for ptp fifo queue Date: Tue, 24 Jan 2023 03:08:34 +0300 Message-Id: <20230124000836.20523-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Vadim Fedorenko 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(-)