Article View: linux.kernel.netdev
Article #22182Re: [PATCH net v4 1/4] igb: don't touch rings that don't exist when disabling an XSK pool
From: Antonio Quartulli
Date: Tue, 24 Nov 2026 23:56
Date: Tue, 24 Nov 2026 23:56
46 lines
10848 bytes
10848 bytes
On 24/11/2026 22:38, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue(s) to consider. > > Critical: 0 · High: 1 (2) · Medium: 0 · Low: 0 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] The new `qid < adapter->num_rx_queues` guard in > igb_xsk_pool_disable() (and `qid < adapter->num_tx_queues` in… > The race with a runtime resume is real, though it predates this patch: v5 adds a patch that resumes the device for the duration of igb_xdp(), which also covers the same race in igb_xdp_setup(). > Pre-existing issues: > - [High] igb_txrx_ring_disable() and igb_txrx_ring_enable() in > drivers/net/ethernet/intel/igb/igb_xsk.c only stop and restart… > - [High] On error, igb_xsk_pool_disable() returns early with the queue > half torn down. > The two pre-existing issues are real too (the Tx NAPI isn't stopped when Rx and Tx don't share a vector, and a failed buffer reallocation leaves the queue half torn down). They're independent from this series, so I'll fix them separately. The zero-copy tests ran without queue pairs and didn't hit the first one Regards, -- Antonio Quartulli CEO and Co-Founder Mandelbit Srl https://www.mandelbit.com
Technical Details
Message-ID:
<61cf5263-6d8e-4981-95a2-7e6e00afe159@mandelbit.com>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370876-linux-kernel-netdev=dewy.ruReferences:
<20261120210134.133238-2-antonio@mandelbit.com> <179555632368.3135.16785834510606239982@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370876-linux-kernel-netdev=dewy.ru From: antonio@mandelbit.com (Antonio Quartulli) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4 1/4] igb: don't touch rings that don't exist when disabling an XSK pool Date: Wed, 25 Nov 2026 00:56:02 +0100 Organization: Usenet Network Message-ID: <61cf5263-6d8e-4981-95a2-7e6e00afe159@mandelbit.com> References: <20261120210134.133238-2-antonio@mandelbit.com> <179555632368.3135.16785834510606239982@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="67176"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:v1jDOlqCLqd6f0kON1VqrihgGGA= sha256:tsw2JDf72eMZXSpEvTow8RZFzvFtaSee2Tg4JxJJrKI= sha1:iabeFgR2LoVO1EoPBSV9hg/SY44= sha256:90qqTsXiL2YIihgRhYm6FP4jS9vHqeshn08xAmDX9pA= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 3B4D7125E36; Wed, 25 Nov 2026 02:56:35 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=mandelbit.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x6oV-szA4NgD; Wed, 25 Nov 2026 02:56:30 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370876-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 66771125E35; Wed, 25 Nov 2026 02:56:21 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 61E7D2E43E; Tue, 24 Nov 2026 23:56:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795564577; b=nqDfL78o7RWrDBwG6H1HW9ubltMfHPXCc8wI1fizH8dhTW2WRPwl1+cHkLapd9wXl053 /QMlnK2BRtGeHxZs0RVH5qI5J6TZY8PRbtm6pqEowfJPBHmtzbnXsUpjTDS9Tq+DUdoq+ 5nKRg1MpconX0Am4WScIBDnOY6Ycelfd0q1XspIqyXyZ2VkNd5Brl1Vyt8ArgrjusVHH3 q6dG186foeG0iI9o1KJ/+JG+sXjW/5MHQZhbPmq0YiSJn5/3j6VdKeDitGDYsfQRHYYZj XdjN0/Cs9xEjqPT5xLvot+4tI4Cw7ikw93j4ORq3l1BAgLxxF/JBMEtAcsG+LV1S+lQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795564577; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From: Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Rspamd-Queue-Id; bh=f7qkQ+T8kTFhbMBMr1htmxGo+zFUKR6gX0ZGbilJ+so=; b=j8lc3fgdnaX87F/lMO2cVik74vkBQN2ynZ+Pr2pAZz0o/CncUAfEHfCtYG5Dje6pg4me 4fQ0EYY8nOt5AybABeXF9iJN7xAwDu8ibVTiRvJH4Ju6TRHC+dHL49K4uGLlcyDDwrzwU VAbJ+vJ3zr1vRhQjsIR70vmwduJGJIlwMu2co+ZfiPom2gcnTVxsJ3UddGG3wJYMztXMu ray6V/+4nh/HrJmhdtf/VrIPw40wJVUHgja9+rVV+YHt0jSHmY91JWdZ1ynI999SgZqWO w2g9o5CqEC49Z2UBxMaeBlXzT67GnzV3dBxLL45iCkxvpi6A1X/eren11uriOnVa9TQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=vnVxoAp8; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DAA7606A335; Tue, 24 Nov 2026 23:56:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=vnVxoAp8 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.50 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795564576; b=o25rxDNmy1w22PAGvYO1rFXdHrHq7rA5QX4OFzL+TYmRes6gwzuvKBYVK/+6mlqWCTNy 7GtsdkSf8cxU7U+KDndZhN7KPHQLZvTNosILQ/pLk9gxYp4M87zOqBmiOi6myububZ5Ci 3obY5Llh1hirHJjsiSYv49cjV849O996gDW2dmE9wi1vFfDOO3E8CCxdfkqx+zRiQOkL1 kcPRVsIa6FUIr+Fum18rOHCpV8TW+LxWHwi9Gk5C4NezUcYrClOxhstWmYKLIqHe12jlh HET3qiFwvtFzEUQoJTi/5R8NXT9PT6k6vHB6Hg5QiKewzUtFJgrC/VeAEZU7NZqfOTw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795564576; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From: Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Rspamd-Queue-Id; bh=f7qkQ+T8kTFhbMBMr1htmxGo+zFUKR6gX0ZGbilJ+so=; b=N1YXXviCdLSzgOxkr1/d1PyhTwKmJ1uyPAf8yQCdf7v8t6MCm9iUOuJeyklYBAez2MXw dSEbA3/a7N/XAEOn4i74+ExylLaGzdJlGC58pq6V9aYL58oj2H5q0aQSIWYCbMkYXHOzn D1dselZCCevE/IA7hbkrvE5qfZf/4Bq3IxM0t/+RKNpVC/2Izs2JHeqgr5UnBaoKAF3Ce NVav7zNB7lCKjs1zR1mOgIR2RBcYRo2Y5vftoc/1nRnzO9YUDgPCnBO99RhCbYnmdu/0W bVA9tTSsDml7e/qBndi0SVWFAFHu97f3F3v9iOdJwEJcP66SpyWmLsPaj32e/zaEg4w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=vnVxoAp8; arc=none smtp.remote-ip=195.10.208.50 X-Received: from mout-b-105.mailbox.org (mout-b-105.mailbox.org [195.10.208.50]) (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 9BA6C606A323; Tue, 24 Nov 2026 23:56:14 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9BA6C606A323 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com X-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-105.mailbox.org (Postfix) with ESMTPS id 4jZ07n3SVwz9tsZ; Wed, 25 Nov 2026 00:56:05 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1795564565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f7qkQ+T8kTFhbMBMr1htmxGo+zFUKR6gX0ZGbilJ+so=; b=vnVxoAp8hmESv5VQ6obmwalRuoWDM6Xt/gryYkIWU1zCA2bliAZFS1XaYGh+1H0E0zDsuO 8qtGK5T7THYi/qFiL5OSdzjdVxpwfjeXLTx1nXb4xtMMGx7eQlzkmhZFG9D9KYpTqAf56B KPNicU/1qqwOxT85D/L8L+6faz+00drGID6D7wqD0NY7Kp1tpj0G7C0EACCjFb0jAOv+R0 8r9JzZEuZH0FwDpIA13ThM5ThPVlo4TjyfkVBl7UMQoHiIviZFscXdnacFdHlaNijEtKWQ FVLzjnNJtz071GAA8W+T228Hcdh/cEIqCjVnPl4TRTzlLrjCC6oXc1aEDyik6Q== X-Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of antonio@mandelbit.com designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=antonio@mandelbit.com X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, janislacis06@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org X-Organization: Mandelbit SRL X-In-Reply-To: <179555632368.3135.16785834510606239982@kernel.org> X-Rspamd-Queue-Id: 4jZ07n3SVwz9tsZ