From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E5831F00937; Tue, 1 Dec 2026 13:10:31 +0000 (UTC) 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== Subject: Re: [PATCH net-next v2 06/13] net: vxlan: Pass portid through FDB notifications From: netdev-bot+sashiko@kernel.org To: petrm@nvidia.com 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 Date: Tue, 01 Dec 2026 13:10:30 +0000 Message-ID: <179613063063.3146.13945368265097568130@kernel.org> In-Reply-To: References: X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: bridge@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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