Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Nikolai Dokutovich
Sun, 29 Nov 2026 01:41
[PATCH] net: dcb: correct the enum values named in the dcbnl kernel-doc
Author: Nikolai Dokutovich
Date: Sun, 29 Nov 2026 01:41
Date: Sun, 29 Nov 2026 01:41
44 lines
12195 bytes
12195 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads