ENUM DCBNL_COMMANDS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum dcbnl_commands β€” Kernel API Manual

okay bestie, so this page is literally the kernel API manual entry for enum dcbnl_commands(9), and it's giving "the entire menu of DCB commands you can fire at a device" ✨ iykyk. Let's get into it.


🌸 NAME 🌸

enum dcbnl_commands β€” the supported DCB commands, like, the whole roster πŸ‘‘


✨ SYNOPSIS ✨

no cap, here's the exact enum, every single member, character for character:

enum dcbnl_commands {
    DCB_CMD_UNDEFINED ,
    DCB_CMD_GSTATE ,
    DCB_CMD_SSTATE ,
    DCB_CMD_PGTX_GCFG ,
    DCB_CMD_PGTX_SCFG ,
    DCB_CMD_PGRX_GCFG ,
    DCB_CMD_PGRX_SCFG ,
    DCB_CMD_PFC_GCFG ,
    DCB_CMD_PFC_SCFG ,
    DCB_CMD_SET_ALL ,
    DCB_CMD_GPERM_HWADDR ,
    DCB_CMD_GCAP ,
    DCB_CMD_GNUMTCS ,
    DCB_CMD_SNUMTCS ,
    DCB_CMD_PFC_GSTATE ,
    DCB_CMD_PFC_SSTATE ,
    DCB_CMD_BCN_GCFG ,
    DCB_CMD_BCN_SCFG ,
    DCB_CMD_GAPP ,
    DCB_CMD_SAPP ,
    DCB_CMD_IEEE_SET ,
    DCB_CMD_IEEE_GET ,
    DCB_CMD_GDCBX ,
    DCB_CMD_SDCBX ,
    DCB_CMD_GFEATCFG ,
    DCB_CMD_SFEATCFG ,
    DCB_CMD_CEE_GET ,
    DCB_CMD_IEEE_DEL ,
    __DCB_CMD_ENUM_MAX ,
    DCB_CMD_MAX

};

πŸŽ€ CONSTANTS πŸŽ€

okay so this is the part where we go one by one, no skipping, not me being thorough πŸ’…

  • DCB_CMD_UNDEFINED β€” the unspecified command, literally just there to catch errors 🚨
  • DCB_CMD_GSTATE β€” request the state of DCB in the device (the "g" is for get, bestie, we love a pattern)
  • DCB_CMD_SSTATE β€” set the state of DCB in the device
  • DCB_CMD_PGTX_GCFG β€” request the priority group configuration for Tx
  • DCB_CMD_PGTX_SCFG β€” set the priority group configuration for Tx
  • DCB_CMD_PGRX_GCFG β€” request the priority group configuration for Rx
  • DCB_CMD_PGRX_SCFG β€” set the priority group configuration for Rx
  • DCB_CMD_PFC_GCFG β€” request the priority flow control configuration
  • DCB_CMD_PFC_SCFG β€” set the priority flow control configuration
  • DCB_CMD_SET_ALL β€” apply all the changes to the underlying device, the "commit everything" button fr fr πŸ”₯
  • DCB_CMD_GPERM_HWADDR β€” get the permanent MAC address of the underlying device. Only useful when using bonding. that's it, that's the whole note 🫢
  • 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_PFC_GSTATE β€” the manpage literally just says -- undescribed -- 😭 that's all we get
  • DCB_CMD_PFC_SSTATE β€” also -- undescribed -- πŸ’€
  • DCB_CMD_BCN_GCFG β€” -- undescribed --, yeah same energy
  • DCB_CMD_BCN_SCFG β€” -- undescribed --, moving on bestie
  • DCB_CMD_GAPP β€” get application protocol configuration
  • DCB_CMD_SAPP β€” set application protocol configuration
  • DCB_CMD_IEEE_SET β€” set IEEE 802.1Qaz configuration
  • DCB_CMD_IEEE_GET β€” get IEEE 802.1Qaz configuration
  • DCB_CMD_GDCBX β€” get DCBX engine configuration
  • DCB_CMD_SDCBX β€” set DCBX engine configuration
  • DCB_CMD_GFEATCFG β€” get DCBX features flags
  • DCB_CMD_SFEATCFG β€” set DCBX features negotiation flags
  • DCB_CMD_CEE_GET β€” get CEE aggregated configuration
  • DCB_CMD_IEEE_DEL β€” delete IEEE 802.1Qaz configuration, bye bye πŸ¦‹
  • __DCB_CMD_ENUM_MAX β€” -- undescribed -- (the sentinel, sitting there mysteriously)
  • DCB_CMD_MAX β€” -- undescribed -- (the other sentinel, equally mysterious)

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./include/uapi/linux/dcbnl.h, and then a whole friend group of structs and enums that you should lowkey also go read: struct cee_pg(9), struct cee_pfc(9), struct dcb_peer_app_info(9), enum dcbnl_attrs(9), enum ieee_attrs(9), enum cee_attrs(9), enum dcbnl_pg_attrs(9), enum dcbnl_tc_attrs(9), enum dcbnl_cap_attrs(9), enum dcbnl_numtcs_attrs(9), enum dcb_general_attr_values(9) β€” iconic lineup, honestly 🌈


real talk: this enum deffo is the plumbing behind DCB config on your NIC, so treat it with main character respect πŸ‘‘

okay that's the whole page!! sourced from ./include/uapi/linux, dated October 2026, and it's literally titled enum dcbnl_commands(9) β€” slay, go configure your device, mwah πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from