Article View: linux.kernel.netdev
Article #5306Re: [PATCH net-next v7 07/13] net: mana: swap queue sets in mana_change_mtu
From: Wei Hu
Date: Tue, 20 Oct 2026 04:30
Date: Tue, 20 Oct 2026 04:30
24 lines
9209 bytes
9209 bytes
Hi, > Does this stats update in mana_xdp_xmit() lack mutual exclusion when > racing with other CPUs? I will leave this counter update unchanged in v8. This is the same baseline lost-update issue reported on patch 4: CPUs can share a queue, and the aggregate xdp_xmit update is outside the per-frame send lock. That exclusion gap predates this series in both upstream bases. The seqcount-corruption/infinite-loop consequence requires the 32-bit u64_stats_sync implementation. Supported PCI MANA configurations are X86_64 or ARM64, and CDX requires 64BIT; their implementation has no sequence counter or fetch retry loop. The lost increments are real, but the more severe claimed consequence does not follow on those builds. Also, the submitted patch 7 does not modify mana_bpf.c. The quoted counter-pointer conversion belongs to an earlier patch in the series. Neither that conversion nor this MTU change introduces the existing writer-exclusion gap. I am keeping the independent counter fix out of v8. Thanks, Wei
Technical Details
Message-ID:
<qset-v7-sashiko-07-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-349037-linux-kernel-netdev=dewy.ruReferences:
<cover.1791710735.git.weh@linux.microsoft.com> <87e016ed7479a33be87128b01bb07d2e1807c87d.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175607@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-349037-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v7 07/13] net: mana: swap queue sets in mana_change_mtu Date: Tue, 20 Oct 2026 04:30:42 +0000 Organization: Usenet Network Message-ID: <qset-v7-sashiko-07-v8-plan.20261018.weh@linux.microsoft.com> References: <cover.1791710735.git.weh@linux.microsoft.com> <87e016ed7479a33be87128b01bb07d2e1807c87d.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175607@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3782172"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:6hjDDJKOcZ9y4BEXZZu5cWfKqyM= sha256:hqM+5EZiAvjeF9mRk9QNXy/XcszU4JHptod5Ek7p+Pk= sha1:0BBPHiQ/cbUfYRD92SBBgo07uCo= sha256:jMR8zg/SsK5+dSePHbS7TNyiQPNtlk+k6AJMaDfaZ8M= 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 CE15E110BFD; Tue, 20 Oct 2026 07:34:04 +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 YDBncpJ__N3O; Tue, 20 Oct 2026 07:34:02 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349037-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 01AAD110BDB; Tue, 20 Oct 2026 07:33:53 +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 3285F4A00D; Tue, 20 Oct 2026 04:31:02 +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=1792470660; b=FvxxETHx8SdMqHnmNtdzstHaiwDfy0JNF7hV5r2Wr++VHZ1IX0n7iWe6HgGbegea74Ih x/dtDsVcWlG8Z8iN/DPlsQ2Wb8obeWfyIFQk3B9wt+/qQtSOSjI/29ll3EatRLKg/cEMb FhrNtS1vHjeZhlWrvDUMRZx+YxRxWQvsTUNLkse/DNe682L27hJmWCbj7UbIdxTtdANUr fexHIb0lUcranQWD4E5KlGPn8tWTbrTKW5AMRTM0CbQPopBY58efz8Owc3EtouroU4aU1 YXoWDVmr/euhHvWAr5t20Psx/mMg4rX1zO5GVBwWfmGHeRDsAcTs+elugw5nvI6x8QA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470660; 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=3UvhX2apNd/qnNqj12GKek217Nsl8pRDNQhnNCUM2Fg=; b=rpId22Vf+/hAVPX8UTBBZSAcDQc82zBlC7c5ARLPKGFkOskm2jAXITwo3bF/DpbauEd/ NN2CByzYojN7o1PzKYvntYle9dMdwkAzxfi2ruCoZcSKfOHz9Av4UsJ5w5enJK5NMiDIq AvCECdpbJhdzMpDVZHxkp5JqY2NM24gZs2HKudJJbjd+qLW84bfbWpiHGl/m6n95iOeot 8X2EABSUwuzV90xCKtfBgFNk8RP8rYATN0ZpTsDBvmjA/QjLk1rFTPgJ4v0WpkNZ89kNa fb4ctE4SDJtelrwctEiy5tAkWG7NK0kSIhe81heENDqPpSEO49H6ucRAEXB945wKyhQ== 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=G2VokJw8; 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 7883C606A33D; Tue, 20 Oct 2026 04:31:00 +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=G2VokJw8 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=1792470654; b=ZWDpx8YfOTORgHNQlqenKOXwJbWiM6hhzw02UtrkDUfbfvMlXpEERAcFTX1KyCCzjWem NsWwLXf3vIMoo+8Gk3qf+QvAWalVs+k0i6tfnQjthWVC8ICGK373e/0kNeZyCZffpXIqF gdXPYHVhA/WjdTk1dqFYvI5lRekExTKKiQnBSMV3NkLvIW/b4hL8k2VVcYRmLxvMdysO3 DlPJWxWzdzbV6Lmbfab38/UDH+BcMOXCqU4mp8GeBwsTg7jcqFGmkrl940IInNAuIRmUA HFpnC2lU1/p1eArkJ1gGrvezk6cUEJnvvrtfh5EMfbgtdrqiyEy0lYDpNLZ1u9q9spA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470654; 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=3UvhX2apNd/qnNqj12GKek217Nsl8pRDNQhnNCUM2Fg=; b=HxP0I4msK9bZsLPMyigowQfm5hpO+Nh8bp16BnV2x0UySscsfAZpOGpqmnxia9BLcQN6 lGs3YujrsppIyp56rU7COjcu6Un5yvGPMzTPtLMoDRiT+QnnyXjSpQUTG+jHWfFp2OP4o buxzuMjrd4MNOrJmOv6lBq538P5wevNvwdxw9D2i9L0kh+4tzGSHqMpSVAEzVaZM0hsNH emvd1xCtL3ZtXqlJTMplVwYQpYyCd8rnyek80P4SHBkdyWgfvoalcLddLxn9AT2JOrwj0 2oBWJclqPtrVJ43xiVQW3e1OuAAL6GX4MIaoxa2lrzZ4mtWFyxS3uPc3peSTS+EsDFw== 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=G2VokJw8; 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 517E8606A33B; Tue, 20 Oct 2026 04:30:54 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 517E8606A33B 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 BB7BD20B7185; Mon, 19 Oct 2026 21:30:45 -0700 (PDT) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BB7BD20B7185 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1792470646; bh=3UvhX2apNd/qnNqj12GKek217Nsl8pRDNQhnNCUM2Fg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G2VokJw80Albs9KNiIGir3mmnO7536BzfkYg+6PbLtj7RYQYNC99u5FU7wEzQ6GQW j77lUEQrFvGV6NjND+Zp0Q1iqwbKhVQgS2nD1WChXRoFLMCE+H/Xeyb60p5hWdANHb jADk2CtzZHjJvp15s0UEEydqJ4qXQHpdUd4WpAek= 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-175607@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