Article View: linux.kernel.netdev
Article #25286Re: [PATCH net-next v2 06/13] net: vxlan: Pass portid through FDB notifications
From: netdev-bot+sashiko
Date: Tue, 01 Dec 2026 13:10
Date: Tue, 01 Dec 2026 13:10
88 lines
10906 bytes
10906 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] This concern does not hold up for the reviewed patch, commit
"net: vxlan: Pass portid through FDB notifications".
--
net: vxlan: Pass portid through FDB notifications
This commit threads a portid argument through the VXLAN FDB notify,
update, delete, destroy and flush helpers. The value is used as the
netlink port ID of the RTM_NEWNEIGH / RTM_DELNEIGH notifications.
vxlan_fdb_add() and vxlan_fdb_delete() pass parms->portid, and all other
callers pass zero.
> diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
> index c014307a693b9..9df9f7a8cde70 100644
> --- a/drivers/net/vxlan/vxlan_core.c
> +++ b/drivers/net/vxlan/vxlan_core.c
[ ... ]
> @@ -1276,7 +1279,7 @@ static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
> parms->flags,
> port, src_vni, vni, ifindex,
> ndm->ndm_flags | NTF_VXLAN_ADDED_BY_USER,
> - nhid, true, extack);
> + nhid, parms->portid, true, extack);
> spin_unlock_bh(&vxlan->hash_lock);
>
> if (!err)
[ ... ]
> @@ -1337,7 +1340,7 @@ static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
>
> spin_lock_bh(&vxlan->hash_lock);
> err = __vxlan_fdb_delete(vxlan, parms->addr, ip, port, src_vni, vni,
> - ifindex, true);
> + ifindex, parms->portid, true);
> spin_unlock_bh(&vxlan->hash_lock);
>
> if (!err)
[Severity: Low]
This isn't a bug, just a note on parms->portid. At this commit,
rtnl_fdb_add() and rtnl_fdb_del() in net/core/rtnetlink.c don't fill in
.portid:
net/core/rtnetlink.c:rtnl_fdb_add() {
...
parms = (struct ndo_fdb_parms) {
.dev = dev,
.addr = addr,
.vid = vid,
.flags = nlh->nlmsg_flags,
};
...
}
As a result, vxlan_fdb_add() and vxlan_fdb_delete() always read 0 here,
even though the struct ndo_fdb_parms kernel-doc says "@portid: netlink
port ID of the requester".
The commit message already covers this:
"As rtnl_fdb_add() and rtnl_fdb_del() do not yet fill in the port ID in
struct ndo_fdb_parms, all notifications are still sent with zero."
The later patch "net: rtnetlink: Report port ID in bridge and VXLAN FDB
notifications" sets .portid in both functions, so nothing visible changes
at this commit.
Separately, rtnl_fdb_del() also never sets .flags, and it still doesn't at
the end of the series. No ndo_fdb_del implementation reads parms->flags,
and the compound literal zeroes the field. That wording goes back to the
patch that added struct ndo_fdb_parms, not this one.
Would it make sense to adjust the kernel-doc so it doesn't suggest that
flags is filled in for deletes?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1796041491.git.petrm%40nvidia.com
Technical Details
Message-ID:
<179613063063.3146.13945368265097568130@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375090-linux-kernel-netdev=dewy.ruReferences:
<af8d0ed64ebffc05ed2d247dafd7a0adc2458f5f.1796041491.git.petrm@nvidia.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375090-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 06/13] net: vxlan: Pass portid through FDB notifications Date: Tue, 01 Dec 2026 13:10:30 +0000 Organization: Usenet Network Message-ID: <179613063063.3146.13945368265097568130@kernel.org> References: <af8d0ed64ebffc05ed2d247dafd7a0adc2458f5f.1796041491.git.petrm@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1718770"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:WO32nKI/AydARzLQkMjANJ3gd+g= sha256:6PORNk43DB6t1tlObUXxouBMT7wvM9/5/YuyIf+OM7U= sha1:z7YkNrHssxdIGL+oBNPR/y7yy/k= sha256:uXeS4icmOLolbdZbX3LFEq9cMv+nv9eLj7V5BpGQXAY= 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 50EF51173B2; Tue, 1 Dec 2026 16:11:14 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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, URIBL_BLOCKED=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 hxQcbvs1m7VM; Tue, 1 Dec 2026 16:11:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375090-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B66DB1173A7; Tue, 1 Dec 2026 16:11:02 +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 635153079C; Tue, 1 Dec 2026 13:10:35 +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=1796130633; b=LKQaDGw3huZGsKXFvsmeVfZgvQwX4y+vYG/qupZMH1WRydRzzgFcMk8x9C8QeeMtoJ0w XMd8RzhQT2h2If3ZErfwlRiA06ntonK31sB9nux38cPgEQ1yY1SN4o8X7Qu7bbIPC8yG2 zUxBROT7e97isWax2AjQ+gPvTILQV7W7c4F4fgrjTfX+WmExziU2Dw8e3fAgjphWZY14K KPhZItoxj1p912StnVOWai78iJuaPaZ3Xw+VdaF1NHEWnAPhvfx78VNgTHea1wfM1igUz AElxMQvMagGzF/Vr50eWm6WZygVUuwaVVwP1wDXRJX6i8QGhQcyB6oKsTqvVrK9c5Cw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796130633; 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=mlLuagojTRuKe0cvatsvTZiNpzVvdjZpC5y0IGaj0kA=; b=Vkdao8eFMRSahAl2lxfVEjCzD6+5vqrOm4bgGP4vVY1e35xx79dEfM5ZcwNDm+QH2xFQ oU5i2vpflnap0achTxnbstLGRSBeWKHahJ0DWQwNE8WKMDs1vAt3zl+mFG2elLfiRSzFw 1Z0AuZj/i67ujyusOW7ufuRyk37f6RGh8BO0HlotdOKZkpFtiMiuDvRzodp5JCD4VOkcV Use3Gv0GQUAHZOR/pYj+bROMkOCh/vA2u7rn5AV0figGJ+d4g6HZH3U2iMJKW2ij2Buav aCRVBC1LD7bZCL6mXNwrShTtpgM0AMTQSUTIcoO0paJFzZFBGPzjTYjTiI9wvKe2siw== 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=J2on6g43; 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 0D8D8606A31A; Tue, 1 Dec 2026 13:10:33 +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=J2on6g43 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=1796130632; b=xuigKohzzA1wqsr+a3C17eRr//G4Nbxt+N3tncMZn/+h08OJ1BAeIh/sdX6VxjOfR8TB wAJMzRZWLXRM7LPtFhYIo6SZp1FOLwAsWZkY659YMvSa33RhHFG5UodBO8BkrFn6YZ82f QsmUNX98UzXkZL0BXKVlUjxXlKOsfG3qbeJdq6yGQcjwGqf8BnmDkU033AE0qa6tNttBV 6kn57+C7Xqkp7/GMgZBtce9SZn4MifSn1Hi9xOQWM/HrSysitjI5kSfz/ZBB7fmFMPLLY 9VlVrH9y4/1f2YDktXwLYzZXl6eD2D6fmXu6hAD13tqe4Ae2h4k7MaS8jpR7ssA+iRQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796130632; 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=mlLuagojTRuKe0cvatsvTZiNpzVvdjZpC5y0IGaj0kA=; b=u8MPxMN1+qJ/BhhjzoZ0RTq2CPOfl26BEiTZ7r881dZ2kOT3cAXYbNuTzb1/ONlAjrEj R+gQdfJaxQ6UBcwes6Qg3ht+KgJCoyDfnh0ZkPiqE8y8oE8Qhg1KkrM2UAftTt4tNnAdj The2cccu/tBlrtiNWpOasT88xG+gV0O2wqu6rcJkb+i1S64tXF32Shwrm74JUsxxYKVbO UurUPMwfQKjCTwcI44lBFbcwADEF3WjTlbFuUIzB9sA7mhRUBFlAA2I0ZsVnv76XC09IS 8EC9P3O/kpmGzTOumfBfjeVQy0QAF0wH1J2VsXqNyawnnP8KsjqtWCoFm62fYi0qqCA== 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=J2on6g43; 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 2DCCB606A33F; Tue, 1 Dec 2026 13:10:31 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E5831F00937; Tue, 1 Dec 2026 13:10:31 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796130631; bh=mlLuagojTRuKe0cvatsvTZiNpzVvdjZpC5y0IGaj0kA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=J2on6g43ZFfnJpSs9QbYP70odvwX88w8MIQ7kguVnre8VGg9weIsXNSoOppYNS0Yt kE6BGWR+A/fkmNTa+qfTCrpOelek8MKN/R1RD4Qg7XvzsUEOcvnPuVXJoeTUhM/dgU TqxPBwAnfFYDj4vMLCg0QIupwnaXCHf77kIExreVj1yqzWCsQ5L2TnDPxJIEAp0RtM TYGZKiuIc/hcaUeNjHhFlDubhHsVm+hDQ3tWZx5itKQ/4rPgRajUyJhbdn5Qdfrxk7 qQFm9/YYYGSbA7/vG3NTqO5OLopzmgQ3mwt8LVdQdO/r+CeiWpaGnWcd/bQzGsqjBR 5gZtc2P/QRPfw== X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org, andrew+netdev@lunn.ch, razor@blackwall.org, bridge@lists.linux.dev, idosch@nvidia.com, aroulin@nvidia.com, mlxsw@nvidia.com, shuah@kernel.org, linux-kselftest@vger.kernel.org X-In-Reply-To: <af8d0ed64ebffc05ed2d247dafd7a0adc2458f5f.1796041491.git.petrm@nvidia.com> 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