netdev-bot+sashiko@kernel.org writes:
quoted
+/**
+ * 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.