Article View: linux.kernel.netdev
Article #13254Re: [PATCH net v5 4/5] amt: make pre-query report drops visible
From: netdev-bot+sashiko
Date: Mon, 09 Nov 2026 14:49
Date: Mon, 09 Nov 2026 14:49
51 lines
9837 bytes
9837 bytes
Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit message says DEV_STATS_INC() is applied only to amt_dev_xmit()'s counters: "The device is LLTX, so amt_dev_xmit() can⦠-- amt: make pre-query report drops visible This patch adds a debug message when an amt gateway drops an IGMP or MLD report because the relay's Membership Query has not arrived yet. It also stops amt_dev_xmit() from counting reports it forwarded as tx_dropped. Finally, it switches the device's tx_dropped and tx_errors updates to DEV_STATS_INC(). > The device is LLTX, so amt_dev_xmit() can run on several CPUs at once; > use DEV_STATS_INC() for its tx_dropped and tx_errors updates so > concurrent increments are not lost. [Severity: Low] This isn't a bug, but does this paragraph cover the whole diff? It describes the DEV_STATS_INC() change as limited to amt_dev_xmit(). Only two of the converted sites are in that function. The patch also converts every other tx_errors and tx_dropped increment in drivers/net/amt.c: amt_send_discovery() (three tx_errors sites) amt_send_request() (three tx_errors sites) amt_send_igmp_gq() (tx_dropped) amt_build_mld_gq() (tx_errors) amt_send_mld_gq() (tx_dropped) amt_send_advertisement() (three tx_errors sites) These run from the gateway workqueue and the relay receive path, not from ndo_start_xmit. The extra conversions look correct and are needed. DEV_STATS_INC() does atomic_long_inc() on the same storage as dev->stats.tx_errors and dev->stats.tx_dropped. A plain ++ left on either field could overwrite an atomic increment from amt_dev_xmit(). Could the commit message mention these conversions and give that reason? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261105125010.1107546-1-omar%40blockcast.net
Technical Details
Message-ID:
<179423575970.994134.5432026388018419992@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359378-linux-kernel-netdev=dewy.ruReferences:
<20261105125010.1107546-5-omar@blockcast.net>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-359378-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v5 4/5] amt: make pre-query report drops visible Date: Mon, 09 Nov 2026 14:49:19 +0000 Organization: Usenet Network Message-ID: <179423575970.994134.5432026388018419992@kernel.org> References: <20261105125010.1107546-5-omar@blockcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="381200"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:63xL/0Yh987fq2kpslCCqpQy2qQ= sha256:DwNAq7shr9EIrDL8CFV7Ibl7unlVaBlBdD0yVQTJ+jg= sha1:Y1ZNxmOaO+cLP/d+KIcbhXtpdyw= sha256:paa48vAkMI/sBj8z/KapR83aVb+J13m/UsjJJHKjIS8= 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 700E111383B; Mon, 9 Nov 2026 17:52:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.org 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 42p3j5_Msu0R; Mon, 9 Nov 2026 17:52:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359378-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id E4676113835; Mon, 9 Nov 2026 17:52:04 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id EE76F6068C0; Mon, 9 Nov 2026 14:49:39 +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=1794235762; b=b951jscaL5jE0h4kAPodrZ3L4poLTDlhRXxLqNx1B02OD69O6gpbFmTFdAUcREDDpa6P VGaMfMVboJLE+XUyFQbAJarW7s9aqDyADw/txmUoUfoPCo7fMoq3JVsy3MOB+TxXjCWzc KJ1r01tPBbODvkhmIdigHKVk9MRah30211PKUEgk8K+QfGAX5m2hIascURsK6nHngUw/d 7XTHmU9+AS1WKciWAJixO7tRlRSI3jaD2gGZeNgU1i0o2x2L2MJ/vcbNjQUO7dRBnXTms 6X/AKT5UtQzCeBHREYDXcRqdbwedjTbK2j7IWEHElkIo1UDDSl0lKbGb0xeGp/0X8EA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794235762; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=JCuBE9rYwaqc4RBfcgIVaBjWp20I290RtM10+0Z+wSc=; b=UuGUHVtalcA3CbHn03UwLqC42OcN04hVP04pLzAmbNIUbhOypF+qoOMXF9MIJSSPWKOH x+Zj7LGyfw1L1yQe5wbtjuiRk73gtlV8xKBI+mz1g72Mfcqeay6d/WYhbZbSLusoIKYdi q+OaGv5+JXhJemguOWteuYr3g97PVPpvw4WJa9Fpdr5hE2HxPcvaXL/zPK2Zf1q3aqHb3 DW4DQBfchmFeTxBnbZFUepsWdSJYv3yw+/80zjxaKqH8Q9yOp40IFGMNt+EOv25XI6WJE k7pQmjaZxTpg2BYXiMOcf/duyNmb1rtL+VGbFmAKNbrn+M6ZHg/bHiJzN4JoHViD5mA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QRwEMsyR; 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 8147F606EEB3; Mon, 9 Nov 2026 14:49:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QRwEMsyR X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794235761; b=aeVyGUD4MKyj9CLl4SiQXYSe2zRIMEk9hr7n2B6FsWtQUJ58T0AyETlHJbSUPrTs8TSG yYlq6DaRCuIZvCwr2NiL8GtN6I1JQgx7lnBMJMvH76A4Aa+nsUl4gFZDg/v7XoaGmgePx W0zgKpNVAlJhbcJxm4OdfqHbzWSWVSdWW/QMbob7vyhBt9U4LG2ShB50HdTr/uoZsaLl8 0L+p6NyJa1UPmlDIjSm3De6VcdMe8fOMTdmvaNp/rYy1EX8qgmTpx0CS2PSW2ewnRp2M5 rg4BPQG11fSmSQuiSg43181zKVurOruqBCpJmV2KHkx5tqkoHph6GTrXpXe8aTZ3rOg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794235761; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=JCuBE9rYwaqc4RBfcgIVaBjWp20I290RtM10+0Z+wSc=; b=RjLhB9PnGGX8mM8lagotzvWIDA7/gmqKADhkpUfG5ewxTPV2eXqw9fmTvI5ck+yTPz9c K+l9KBZDF4KscxyetANJcHFDeS7bumz9Tyqzz5nOTpipcDUC74//h6NDoffkti85Our5U Sa1BveaqHjYxOX27iGdScoGGkuMAR8bXJNyMAW4VmFLgiPOTmiHEA1qVVu8NxWfPzEsJ0 shtab2PcY8uiuud1OtqDhaL3E6CiMmPwB4OOM4LtrAUtKCopdhEw57Xj2cQLNe4T15Cpi oyLEG3KwzMq0Dpf07P90bqMFuOlNHGXczyZ+mhdYKI70pvQtfiljUshy+ck8iE0WmFA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QRwEMsyR; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67CC5606EE9D; Mon, 9 Nov 2026 14:49:21 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E99D1F008A2; Mon, 9 Nov 2026 14:49:20 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794235761; bh=JCuBE9rYwaqc4RBfcgIVaBjWp20I290RtM10+0Z+wSc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=QRwEMsyRD08u9TEsDafDWMwx8IDLLypjHbFQ9CdXRWV7eSfRfmPhbDtOF41wZi96e iUViSto727I3b9Ot3xjoHhZ0Lm67F9QQYzDrjuIclc1a4a4WmwOkAOffCE14CvIYKC ziV+YJyQZtUbNe4D/WKN8j7ROeDgOYmOcCkuxEOo7HfZyj/cxAZDpCPKWEmF8lRlun d7FbTNUa1mi779QnLRyBS4haB52i8TI9bgjttheUqiSQ7+qjo44V67trBsDKeopuNN mSxez10Jf0pmzWbC112mYHwGDbakLjSw3GkzrF9eGsC0zKsS79YSP3BoBTwQDgwfb3 4liYhm4WsxZ5w== X-Cc: ap420073@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org, bigeasy@linutronix.de, clrkwllms@kernel.org, rostedt@goodmis.org, linux-rt-devel@lists.linux.dev X-In-Reply-To: <20261105125010.1107546-5-omar@blockcast.net> X-sashiko-severity: Low 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