From: Petr Machata <petrm@nvidia.com>
To: <netdev-bot+sashiko@kernel.org>
Cc: <petrm@nvidia.com>, <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>
Subject: Re: [PATCH net-next v2 01/13] net: Introduce struct ndo_fdb_parms
Date: Tue, 1 Dec 2026 19:12:10 +0100 [thread overview]
Message-ID: <87ecc0uayt.fsf@pmachata.org> (raw)
In-Reply-To: <179613062858.3146.7650139922533019233@kernel.org> (netdev-bot's message of "Tue, 01 Dec 2026 13:10:28 +0000")
netdev-bot+sashiko@kernel.org writes:
>> +/**
>> + * 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:
...
> 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?
It could, but it seemed like overkill, which is why I didn't do it.
next prev parent reply other threads:[~2026-12-01 18:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <36a8818d315eaf6de10f97d9f3c691d821664d85.1796041491.git.petrm@nvidia.com>
2026-12-01 13:10 ` [PATCH net-next v2 01/13] net: Introduce struct ndo_fdb_parms netdev-bot+sashiko
2026-12-01 18:12 ` Petr Machata [this message]
2026-12-01 18:15 ` Petr Machata
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ecc0uayt.fsf@pmachata.org \
--to=petrm@nvidia.com \
--cc=andrew+netdev@lunn.ch \
--cc=aroulin@nvidia.com \
--cc=bridge@lists.linux.dev \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mlxsw@nvidia.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=razor@blackwall.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox