mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] net: dcb: correct the enum values named in the dcbnl kernel-doc
@ 2026-11-29  1:41 Nikolai Dokutovich
  0 siblings, 0 replies; only message in thread
From: Nikolai Dokutovich @ 2026-11-29  1:41 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel, Nikolai Dokutovich

Two kernel-doc blocks name members that do not exist in the enums they
document:

- enum dcbnl_commands is documented with DCB_CMD_GBCN and DCB_CMD_SBCN.
  The enum has DCB_CMD_BCN_GCFG and DCB_CMD_BCN_SCFG, and the
  descriptions were swapped as well, "get" for the one and "set" for the
  other.
- enum dcb_general_attr_values is documented with DCB_ATTR_UNDEFINED.
  That name belongs to enum dcbnl_attrs; this enum's only member is
  DCB_ATTR_VALUE_UNDEFINED.

Signed-off-by: Nikolai Dokutovich <ndokutovich@gmail.com>
---
 include/uapi/linux/dcbnl.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/uapi/linux/dcbnl.h b/include/uapi/linux/dcbnl.h
index 7e15214aa5dd..820cef1c1875 100644
--- a/include/uapi/linux/dcbnl.h
+++ b/include/uapi/linux/dcbnl.h
@@ -290,8 +290,9 @@ struct dcbmsg {
  * @DCB_CMD_GCAP: request the DCB capabilities of the device
  * @DCB_CMD_GNUMTCS: get the number of traffic classes currently supported
  * @DCB_CMD_SNUMTCS: set the number of traffic classes
- * @DCB_CMD_GBCN: set backward congestion notification configuration
- * @DCB_CMD_SBCN: get backward congestion notification configuration.
+ * @DCB_CMD_BCN_GCFG: request the backward congestion notification
+ *                     configuration
+ * @DCB_CMD_BCN_SCFG: set the backward congestion notification configuration
  * @DCB_CMD_GAPP: get application protocol configuration
  * @DCB_CMD_SAPP: set application protocol configuration
  * @DCB_CMD_IEEE_SET: set IEEE 802.1Qaz configuration
@@ -730,7 +731,7 @@ enum dcbnl_bcn_attrs{
 /**
  * enum dcb_general_attr_values - general DCB attribute values
  *
- * @DCB_ATTR_UNDEFINED: value used to indicate an attribute is not supported
+ * @DCB_ATTR_VALUE_UNDEFINED: value used to indicate an attribute is not supported
  *
  */
 enum dcb_general_attr_values {
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-29  1:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29  1:41 [PATCH] net: dcb: correct the enum values named in the dcbnl kernel-doc Nikolai Dokutovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®