Article View: linux.kernel.netdev
Article #5302Re: [PATCH net-next v7 04/13] net: mana: swap queue sets in mana_set_channels
From: Wei Hu
Date: Tue, 20 Oct 2026 04:30
Date: Tue, 20 Oct 2026 04:30
31 lines
9569 bytes
9569 bytes
Hi, > Does mana_xdp_xmit() require a lock when updating tx_stats->syncp further > down in this function? I will leave this counter update unchanged in v8. Multiple CPUs can map to the same queue, and the aggregate xdp_xmit update is outside the per-frame send lock, so lost increments are a real issue. However, the same writer-exclusion gap exists in both unmodified upstream bases. Moving the counters to port-owned storage does not introduce that race. I am keeping that independent statistics fix outside this series. The claimed sequence-counter corruption and infinite reader loop also require a configuration this driver does not support. PCI MANA requires X86_64 or ARM64, and CDX requires 64BIT. On those 64-bit configurations, u64_stats_sync has no sequence counter and fetch_retry() returns false. This does not excuse the baseline lost increments, but it does rule out the reported 32-bit hang for supported builds. > Could this u64_stats_update_begin() call deadlock a preempting softirq > reader? I will leave the folding synchronization unchanged as well. This second report depends on the same unavailable 32-bit sequence-counter behavior. There is no odd sequence counter for the preempting reader to spin on in the supported 64-bit implementation. Adding BH exclusion to address that specific scenario is therefore not warranted. Thanks, Wei
Technical Details
Message-ID:
<qset-v7-sashiko-04-v8-plan.20261018.weh@linux.microsoft.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349035-linux-kernel-netdev=dewy.ruReferences:
<cover.1791710735.git.weh@linux.microsoft.com> <ec57f3853ef344a7d5ec8907ba530313b0163bae.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175604@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349035-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v7 04/13] net: mana: swap queue sets in mana_set_channels Date: Tue, 20 Oct 2026 04:30:40 +0000 Organization: Usenet Network Message-ID: <qset-v7-sashiko-04-v8-plan.20261018.weh@linux.microsoft.com> References: <cover.1791710735.git.weh@linux.microsoft.com> <ec57f3853ef344a7d5ec8907ba530313b0163bae.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175604@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3781766"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Tdk9+8R5dkTxG9qneWrIOAcl59o= sha256:ayMXlHwx4njRKlR0TI4XccOOCcb9GJAUPlnVKsnNJJs= sha1:U3gHv2UJ7jiZbjkIqbgoJC3gNQ4= sha256:LbYN8sjJKq9m5oQi5C9Gq8XqWaMeJivOb4RAyLSJQxc= 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 5F4B1110BF9; Tue, 20 Oct 2026 07:31:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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.25, 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 (1024-bit key) header.d=linux.microsoft.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 wnyy-F37LWbf; Tue, 20 Oct 2026 07:31:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349035-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 3FA21110BD7; Tue, 20 Oct 2026 07:31:13 +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 508F0425E4; Tue, 20 Oct 2026 04:30:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1792470652; b=Lk2HsE+s40ndAloykSKPWOk3/+MO+SHAoLPh+av6jhF9a3DL5Scg4TNxT1vneERO23cY MA3w8pqvdueul3ORf0nhMLjknmYCMOJU8URp/cwOLj9ftTwtGcTHVySLWBGDx9WAcWFba TGFSyvSptZYNed2wCpfwbiT2V+FoAHmCNuM/W/y61eWMlNY4KLB5AEaLbFZCZ+JKvVntd WMm2XBo/c724zLoN+ME/ZjVFwURI6JAuphiWjFxKKRCcpEj+eRdDSOO9CxQ3P512ENZJK Aayc0FPShQRc085X/6ed7D+HEl83qx0LlBHTOy4pIQ7kx45b/naeRaqAPn3+Bi/2gcQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470652; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:Content-Type:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding; bh=KwfIC9w5+Dsb3Z7ZsSlMvDgkuO9sLeD+ol8gOYO/XGU=; b=fFdWgvftRiGQkAuzlhr0aJ7L+uy7oAW2VNKJdFjm/vEev2DiPyvcsga/n8mCYR6nLBfR 8SOu/YHwmPLyx28cuoR/IlC9S8xU5CAMyou1Ps2JHwksIODcCpMvXIaka10030uBgweIl uQ6DSE1xYTJyB8khUiTtEZp5ckAX9dDRgj9nbFsFYQcUuitoSNZQmYeBdFKUuh4CbTL15 mQPA4cUG6ktmNaj8QwgHai6VBdwbuMvj9DZ/hh9hXnAOIC+WayK1zsoFIW/OsckvI7WRc ziZVy88ZzEx4rOOL+XWbqId7cfI0rm0l4tARqp/D2XcQ/MH/81wT7vW9Hc8WSA8erWw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b="q/0//lIs"; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; arc=fail 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 DDFDC606A333; Tue, 20 Oct 2026 04:30:51 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=q/0//lIs X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792470651; b=zn5SKflZ2gz+OClLxY37gxa3EnLs924VhG/dEMtHXB74IOjGFMPxLRvhLAJ8T9jLixlJ 4FXR0df8Tvwsdw6F4lf6cQScwnlNSZVzg5aFt4NluAqbc9kpB281V9cUEEcnQLPB4GMY3 tEGTktH9nKYfSvR+V/z7bc/0A0Qqj8cq0FbuqpEl9wJ5zxbYlKiJ+mJCbxMo60G0vE36j 3Y3rRdOqmsC5fM1EBMivGA2/tPn1FouNpJdN48NOd96yiCx06x/mXr2ThJy57xzGoa3CB M8XbvZGB1cO6+nOsNIUB9RQJGU7KAQC7P5lT/UOlZVosK6SR3KT980DRKKbaq2zPdKA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470651; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:Content-Type: MIME-Version:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=KwfIC9w5+Dsb3Z7ZsSlMvDgkuO9sLeD+ol8gOYO/XGU=; b=K4MobklifO1cVdo/dBvWqJ0hZzacF3ZvXBGA8HjPprhK3m5VSYCVvS7tk97vGNEtIsI1 9YiJXsoDBDZ/mdD+/AEN3SLYWmy5rPIN5TgyahdzzSzditpabjIhAk017e8LR+kTmpRFA vwQvnAvfdTMgS2sqrBAHSoRjsmOY5fhXkVbJgdaKMlCs1dSoyM0/9vXtPxAEm6/GmHgPA anT0nypua5SOslbvDIpNpFjg/47xzBDH/kC1aO6d3UXZgpjZJloJRg+Oig7IBKKHJ2WVM E1tiVkh5n/QXJFfon2qC2Ok/8VnxzO2OpHsep6BaiM+5C9NXD74e6HcpryX6p0Ds7UQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b="q/0//lIs"; arc=none smtp.remote-ip=13.77.154.182 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE232606A32D; Tue, 20 Oct 2026 04:30:50 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AE232606A32D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com X-Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37]) by linux.microsoft.com (Postfix) with ESMTPSA id B6E9220B716D; Mon, 19 Oct 2026 21:30:42 -0700 (PDT) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B6E9220B716D X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1792470643; bh=KwfIC9w5+Dsb3Z7ZsSlMvDgkuO9sLeD+ol8gOYO/XGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q/0//lIsfhOVPJayY/cmdILeb33ChMX0PqCRqec6HLrFm6vXr/QtCIUrlPPymkKEP m/9kaKQBjJp1ds+9U4Xfsj50HA4aj6fOe0m792CKotlYwolHbQccbbJC+gAxFqAihB 0poLefqDKI7jsnU/Gb0JJFSNQxYBELIZ/Rm7KaP0= X-Cc: linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, weh@microsoft.com, kuba@kernel.org X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <sashiko-outbox-175604@kernel.org> 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