mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nikolai Dokutovich <ndokutovich@gmail.com>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Nikolai Dokutovich <ndokutovich@gmail.com>
Subject: [PATCH] net: dcb: correct the enum values named in the dcbnl kernel-doc
Date: Sun, 29 Nov 2026 04:41:23 +0300	[thread overview]
Message-ID: <20261129014123.57368-1-ndokutovich@gmail.com> (raw)

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


                 reply	other threads:[~2026-11-29  1:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20261129014123.57368-1-ndokutovich@gmail.com \
    --to=ndokutovich@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.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

all inboxes | Powered by JetHome®