From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FB1D606A322 for ; Sat, 5 Dec 2026 13:08:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=tNz/xv5W; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=X7ngXeII Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id DFAEE404E0; Sat, 5 Dec 2026 13:08:03 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id O-hZgy80Rvmf; Sat, 5 Dec 2026 13:08:03 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 22A0740517 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796476083; b=hLErtF0Z7n4Gq5/3QmPOqov0T3icxiGVQU6nW4G+P5BL50cgs1aKsKBouIGxLS5kdx80 WDwEi7vQkYfOFZysqreJLlEcRcvveHcYpHJeu8gejoUdEcWXNslCDRe2qBQd3QoYkvYRu KqN3sS/FJ3cQh+rSIJtgwcj5lOhR5SY33+nbGlQUXehOp7snUjWPfjUcgr0JqEqsnrUej n70nDBKNt1h/p6Hecq0eHXBDpH8Epg2iSzimd29Dv1z8O66hf0Hno0GWHdI6xTGsMAGpP UPMXnoUCEEOzn+ysx6iNPEhkY5LQpnyNc8MJj68GaDIeYVc+4X4vzkiLkUD2un0IDAw== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796476083; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:DKIM-Signature:Message-ID:From:Subject:To:Cc:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:Date:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:Errors-To; bh=UGNyLPM7rLWKPO0f7Bie7bd95o7sg6OZolCHAq/NkpE=; b=PHsC85CYODUXleFv2Dd1Q6Nt6haLvq+GCRUHKzkWsf3Bzbz1nt71xosEzlhLdBj+XWF8 u/Zl46i6Mi1XV1YwkhgohTZSs4Ub5ciRn/19muKDJqZpZTD4hP7QUdwKhqySyuNJIMqgQ UMVPwzLSJhtcNX8lqn4vVl3sDicy8Oni5KJZMunJFzdP//scUlHERH0FH03exR+6KdsTY HrlzaatEtDp6KkgN2rcZ/3/3nXN1m+T8+KkSDJjwujDtNOMqZftS4MT2rvWfhC6JXV7mS cDmkUvENDgRUDDGtMKgguSN2S9EQLz0O9KnbI8JtS8Zd3r0wj78W/fKnTJsHmrbqKZQ== ARC-Authentication-Results: i=1; smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796476083; bh=UGNyLPM7rLWKPO0f7Bie7bd95o7sg6OZolCHAq/NkpE=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=tNz/xv5WozTgu00HbyKNpIeL1TJI0GU8+ZN+r7GJVhvekFOla1l5t197SL68mmp2b sSlkcpssMnT9+RAis04WHcgXGvj6ybiJD1Sl3rZW0LPF6zsjPSDEIqkOJ9I3LucSCd kzSKSPLcERM8mxkSNHl6vr8D4iXcEeJqIVqcdQ1Ws2+otHOOq5WI0k7vn4AaCZQObc 3hDG+apFZ4uXhGEim4syBIlbdfEvjgLEveepqvImCnub2vpU9gzUgOFbIQpuf/B4iD UlEg4ojmqH+MgBKZSXTyx1onxgbIibnzNgtNbe7G7g4VrakbC89iOfRmmQF5x5VWg/ 9cexnw0AzaVWg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 22A0740517; Sat, 5 Dec 2026 13:08:03 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id AFF07325 for ; Sat, 5 Dec 2026 13:08:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A131A400A8 for ; Sat, 5 Dec 2026 13:08:01 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id KkpT7fy9AuKO for ; Sat, 5 Dec 2026 13:08:00 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org B9FE34006F Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=172.105.4.254 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=sashiko-bot@kernel.org; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=X7ngXeII Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by smtp2.osuosl.org (Postfix) with ESMTPS id B9FE34006F for ; Sat, 5 Dec 2026 13:08:00 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 5F86B609CC; Sat, 5 Dec 2026 13:07:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05FDC1F0092B; Sat, 5 Dec 2026 13:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796476078; bh=UGNyLPM7rLWKPO0f7Bie7bd95o7sg6OZolCHAq/NkpE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=X7ngXeII4HZCfdTxeajKrlYFDo7Yhi/pkPxfb8wWc86eVLof9qLR4t1+t1z7r8mAJ bYolMi/FfGxIHR+hiuDYTPPYxKEbOb8+HF3N8VQUqFprcYP0X9Nz/TZcjys6jfIEkH 8SRSUGBAd6s/7RR166+rANq+0JKWSQi3Yv1clRhlL/J6Rw1YK/NnpoRDyKBQcctY8I c8IgoYEzIvCaLnBP9GNqM+4VZqoLpuoXNPG3zRzhQ7jicx5JSURcmn51SemRu/H4KY bIZ5NFXrpMJcrRBFJkXsuNJR1s1KHuPmhqZlA/zQ+BWCHuX4nkedD50lExpQ/8gAMN i6M+47T72MxBg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v1 iwl-net 1/2] idpf: Avoid double recycle on empty packet in idpf_rx_hsplit_wa(). To: "Kuniyuki Iwashima" Cc: intel-wired-lan@lists.osuosl.org In-Reply-To: <20261205124319.2264197-2-kuniyu@google.com> References: <20261205124319.2264197-1-kuniyu@google.com> <20261205124319.2264197-2-kuniyu@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 13:07:57 +0000 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] idpf: empty descriptors still count hsplit_buf_ovf in idpf_rx_splitq_clean() -- commit af024d94ffa2c65eeae02d75ee9e7e6166de24ad Author: Kuniyuki Iwashima idpf: Avoid double recycle on empty packet in idpf_rx_hsplit_wa(). This commit guards idpf_rx_hsplit_wa() in idpf_rx_splitq_clean() with a non-zero pkt_len check so empty descriptors do not double-recycle the payload netmem. > diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/et= hernet/intel/idpf/idpf_txrx.c > index e3a68b4e97d59..c4fc046b041a7 100644 > --- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c > +++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c > @@ -3699,9 +3699,11 @@ static int idpf_rx_splitq_clean(struct idpf_rx_que= ue *rxq, int budget) > hdr =3D &rx_bufq->hdr_buf[buf_id]; > =20 > if (unlikely(!hdr_len && !xdp->data)) { > - hdr_len =3D idpf_rx_hsplit_wa(hdr, rx_buf, pkt_len); > - /* If failed, drop both buffers by setting len to 0 */ > - pkt_len -=3D hdr_len ? : pkt_len; > + if (pkt_len) { > + hdr_len =3D idpf_rx_hsplit_wa(hdr, rx_buf, pkt_len); > + /* If failed, drop both buffers by setting len to 0 */ > + pkt_len -=3D hdr_len ? : pkt_len; > + } > =20 > u64_stats_update_begin(&rxq->stats_sync); > u64_stats_inc(&rxq->q_stats.hsplit_buf_ovf); [Severity: Low] Should empty descriptors still increment rxq->q_stats.hsplit_buf_ovf here? When pkt_len is 0, no header buffer overflow occurred and idpf_rx_hsplit_wa() is skipped, yet hsplit_buf_ovf is still incremented. Moving the pkt_len check into if (unlikely(!hdr_len && pkt_len && !xdp->dat= a)) avoids the extra nesting and prevents miscounting empty descriptors. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205124319.2264= 197-1-kuniyu@google.com?part=3D1