Article View: linux.kernel.netdev
Article #4557Re: [PATCH net-next v4 3/7] vxlan: vnifilter: clamp the dumped VNI range to the request limit
From: netdev-bot+sashiko
Date: Sun, 18 Oct 2026 13:16
Date: Sun, 18 Oct 2026 13:16
62 lines
7983 bytes
7983 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 comment above VXLAN_VNI_FILTER_MSG_MAX in
drivers/net/vxlan/vxlan_vnifilter.c (lines 20-24) describes the orderโฆ
--
vxlan: vnifilter: clamp the dumped VNI range to the request limit
This commit adds VXLAN_VNI_FILTER_MSG_MAX and limits
vxlan_vnifilter_dump_dev() in two ways. A coalesced run of VNIs ends once
it reaches the limit, and each netlink message has a VNI budget. As a
result, no dumped message holds more VNIs than the input path accepts in
one request after a later patch in the series.
> diff --git a/drivers/net/vxlan/vxlan_vnifilter.c b/drivers/net/vxlan/vxlan_vnifilter.c
> index 9e15f4de75c99..5beec29eb84a8 100644
> --- a/drivers/net/vxlan/vxlan_vnifilter.c
> +++ b/drivers/net/vxlan/vxlan_vnifilter.c
> @@ -17,6 +17,13 @@
>
> #include "vxlan_private.h"
>
> +/* The dump coalesces a contiguous run of VNIs into entries, and packs entries
> + * into netlink messages, of at most this many VNIs each, so every message the
> + * dump emits stays within what the input path will accept on replay. A later
> + * patch bounds a single RTM_NEWTUNNEL/RTM_DELTUNNEL request to the same number.
> + */
> +#define VXLAN_VNI_FILTER_MSG_MAX 4096
[Severity: Low]
This isn't a bug, but will the "A later patch bounds a single
RTM_NEWTUNNEL/RTM_DELTUNNEL request to the same number" sentence go stale
once the series is merged?
At the end of the series this comment is unchanged. By then, the commit
"vxlan: vnifilter: bound the number of VNIs one request may touch" has
added the request cap. vxlan_vnifilter_process() calls
vxlan_vnifilter_check_msg(), which does this:
if (vnis > VXLAN_VNI_FILTER_MSG_MAX) {
Once merged, "a later patch" no longer points to anything. The comment
also doesn't say where the input-side limit is enforced.
Could the comment describe the invariant instead? For example, "must
match the per-request limit enforced by vxlan_vnifilter_check_msg()".
Another option is to move that sentence into the patch that adds the
cap.
The dump and input paths agree in the final tree, so this is only about
the comment text.
[ ... ]
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261014123814.388557-1-alishmery18%40gmail.com
Technical Details
Message-ID:
<179232939107.3135.8359039730969717990@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-348047-linux-kernel-netdev=dewy.ruReferences:
<20261014123814.388557-4-alishmery18@gmail.com>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-348047-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 3/7] vxlan: vnifilter: clamp the dumped VNI range to the request limit Date: Sun, 18 Oct 2026 13:16:31 +0000 Organization: Usenet Network Message-ID: <179232939107.3135.8359039730969717990@kernel.org> References: <20261014123814.388557-4-alishmery18@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3329391"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:vk4GqmeFoJUls3+mKYEIO6QTaPI= sha256:0uahR2HjXk+fRxVsyHvWrFkaeWYqrgKJBbn/BChrxLM= sha1:HdMP5sMSXCkbHvVVXpl7GTm0GFg= sha256:v8wxUtNkfYOwl8UbOdu9/OQIhALzWoiKYyZyCd6Sj0w= 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 A509A110811; Sun, 18 Oct 2026 16:16:53 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.84 X-Spam-Status: No, score=-3.84 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.34, 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 8zermaUDAIJ9; Sun, 18 Oct 2026 16:16:46 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-348047-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 831F81107D1; Sun, 18 Oct 2026 16:16:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id E47C1606C03; Sun, 18 Oct 2026 13:16:34 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 773DF4B920F; Sun, 18 Oct 2026 13:16:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jmpqaUlI" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6295B3D7D6C; Sun, 18 Oct 2026 13:16:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792329393; cv=none; b=HT4dNn54BLF1Gg4yiRveIZJrlIaD42EXuUfJcRUQtkZvRA4237JIPCS4kmXCZq4j8hlADRqn+HEaZCEM2JH9zCVirPoQD9+SG95K33VP6/ylVfg1mGaDkPBUvF+j29HbfBoDmAqHbqnBdTC4n/ZOKhYwJ8+34NEFDxg4gSkM7cg= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792329393; c=relaxed/simple; bh=lMpA+iuGf19MfP9l4fBkY32mAMfRHidLrvoEVP0o8E4=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=SDoJh86cMKzaYXDQzuLCAn/hinIOS9Yh/h+VyJO5yGtzbivdZhdsU4OUSeHP3eBvMU3LJZTjDZIluw+USmGcHDx3QFdZDMSbmLhnRI0NwYJYIbFCCKIbHLHlxrFtwYRrjVS7zXL8mHzSkuNLvO6Dsen+lwRGIEzHU9LaTRiWX8g= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jmpqaUlI; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 837B91F000C5; Sun, 18 Oct 2026 13:16:31 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792329392; bh=ZVT/DgFM7AnSStXFdi7HK5nCvEMnh6FUs6WZ7gtrADc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=jmpqaUlIvgHwIljaM13zWigNQ43AfkkBOgYU9fq/RtuXUtn0llxalkwdz4OeAsWF7 +SZKMdQ4W88yikvb4AIqLDj+vsTqsOLfQNprlLq1FE+9C9xOJkmgmriVDt1hXhXA9K HZ4YU6CK/XY3nyjD9BSKE6f/ioz2YpleYeOCkdUa0IEri4OKNR1je4yeOOZlnUhWp6 hcg1jpSUKJH+U6FfrfRB3Naq3kZGjSp78ML12XqAfbizff5+LPK69fV6xeJg5Rr6YZ apH5JZP2WFDiIAx68ylYE/m4FoEn7fbLItPhqZlquv4I+PTG7lsyz4fxrCKrvyyC5c Pi8nGpYHa+WaA== X-Cc: netdev@vger.kernel.org, idosch@nvidia.com, kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net, edumazet@google.com, andrew+netdev@lunn.ch, horms@kernel.org, razor@blackwall.org, roopa@nvidia.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261014123814.388557-4-alishmery18@gmail.com> X-sashiko-severity: Low X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>