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=1796130630; b=V4lmleEnQJCDOZ2+mRBgkvfX5YGLz9DfQYHrHtjDu6YOz4yiyqbhqc7uy5k3sdgw6Nms AmSiI7w3N4/FRZp7M6S7UxUOAhq3YEVaW//P40vGNev7NiYTqNpiUncWYSZKtGr+i52H8 YiH7GLXFV3soTWIQ0Mqn1MSrPosPl1mgie7mg2qkoEjb5y+s0ZlNdrqRsFbrnw/vzxPcn hnd+O/bWIlIfUTBvKZMyZX13g7yp0JL86ISP6566PWFbwAGN2mKINLrHlKDVV6gF1hCeC dXQR5d6IEMB+dVm6SW5rBsjQLIiXKeqfuKxUaVhkr/FdabF0njyZDk725I9P6Y6/D4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796130630; 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=D7VeqERR7suQ8HYoyXM6BC/yUhu5QT86Hepswf53vkQ=; b=m23CIMKK1MIytqpTqnVtQPriK5MBGLalxUUUeg+S1zNQ5XCa5WKD+BmNAefwFnep5rYV lItfehJqzZPMehxMuqiEe/IUAx5Ko9UnSKqWrbUo2xJUg+Ln1jFdygUcjtvSTc2TYCr4a d6Ox2YmWo8w5RQOshjGH3HO9lqx7WpD0wKV+i86uvn6rBVby8ULW8oBC3Wh57fdujx7kM x62lXXkQvqTsfGg4zkHkFba29UXDQ8NLovmof7nC86zaPpByskzlBQc85ITG+RWG4Fmxy fYFL7rhXaFRrqlJVefr63JHf02gOcgAL9YABOfRa6KSYIqSieg79JseYuqUb1+mysfQ== 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=knuUvCa+; 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 95B8F606A331; Tue, 1 Dec 2026 13:10:30 +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=knuUvCa+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C4421F0092C; Tue, 1 Dec 2026 13:10:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796130629; bh=D7VeqERR7suQ8HYoyXM6BC/yUhu5QT86Hepswf53vkQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=knuUvCa+ERnk2rRK3g0RQxxLuEnIBy8MaJiOJfDWGXugs2Jt+kO2sV2dmx2K8ON9R s6Rp1fsUEFeZ8QtULA1jg83mGfXf/zwdB+ki6fIQ4bYG80IZO0tk+ZXvzQNgeTT3hi zW2kQ/VpV4IKjs2N0bPE4xpyoaMS7/mHk2cLCof9ADU+qlfgrpe0RQGXS22/fE6FzB /lA794x4RD3q3vFtGECGM4lZE2U85bZ1qltaAWZ95M4MqLwd/hZulQAUh9UHreSDbI XWdFsQS59FOtCkJPJh/jfayYCInpHRto0gc1Zk99eYmIh1716OSr2mdp76E76RqQAs KZD/HN/rEWikw== Subject: Re: [PATCH net-next v2 01/13] net: Introduce struct ndo_fdb_parms 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:28 +0000 Message-ID: <179613062858.3146.7650139922533019233@kernel.org> In-Reply-To: <36a8818d315eaf6de10f97d9f3c691d821664d85.1796041491.git.petrm@nvidia.com> References: <36a8818d315eaf6de10f97d9f3c691d821664d85.1796041491.git.petrm@nvidia.com> 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] The kernel-doc for the new struct ndo_fdb_parms (include/linux/netdevice.h) says the struct holds the 'parameters for… -- net: Introduce struct ndo_fdb_parms This patch gathers the arguments shared by ndo_fdb_add, ndo_fdb_del and ndo_fdb_get (device, address, VLAN ID and, for add, the netlink message flags) into a new struct ndo_fdb_parms. A pointer to that struct is now passed to the callbacks. rtnetlink and the affected drivers are converted to the new prototypes. > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index 694b6d29f6807..0bfd36057d3a4 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -1087,6 +1087,20 @@ struct netdev_net_notifier { > struct notifier_block *nb; > }; > > +/** > + * struct ndo_fdb_parms - parameters for ndo_fdb_{add,del,get} > + * @dev: device the FDB entry is added to, deleted from or looked up on > + * @addr: MAC address of the FDB entry > + * @vid: VLAN ID of the FDB entry, 0 if none > + * @flags: netlink message flags (NLM_F_*) of the request > + */ [Severity: Low] Does the @flags description match how the struct is filled in for del and get? The kernel-doc says the struct carries the parameters for all three callbacks. It describes @flags as the NLM_F_* flags of the request, without limiting that to add. Only rtnl_fdb_add() sets the field: parms = (struct ndo_fdb_parms) { .dev = dev, .addr = addr, .vid = vid, .flags = nlh->nlmsg_flags, }; rtnl_fdb_del() and rtnl_fdb_get() in net/core/rtnetlink.c leave .flags out: parms = (struct ndo_fdb_parms) { .dev = dev, .addr = addr, .vid = vid, }; As a result, every ndo_fdb_del and ndo_fdb_get implementation sees parms->flags == 0, whatever flags the request carried. In rtnl_fdb_del() that includes NLM_F_BULK, which the function itself reads from nlh->nlmsg_flags. No in-tree ndo_fdb_del or ndo_fdb_get implementation reads parms->flags today. All current users (i40e, ice, macvlan, vxlan_fdb_add(), br_fdb_add(), ndo_dflt_fdb_add()) are on the add path, so this has no runtime effect. Later in the series, the del and get initializers gain .portid but still not .flags, and the kernel-doc stays the same. Could either .flags = nlh->nlmsg_flags be set in rtnl_fdb_del() and rtnl_fdb_get(), or @flags be documented as valid only for ndo_fdb_add? > +struct ndo_fdb_parms { > + struct net_device *dev; > + const unsigned char *addr; > + u16 vid; > + u16 flags; > +}; [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1796041491.git.petrm%40nvidia.com