ENUM DCBNL_COMMANDS(9)
π 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 deviceDCB_CMD_PGTX_GCFGβ request the priority group configuration for TxDCB_CMD_PGTX_SCFGβ set the priority group configuration for TxDCB_CMD_PGRX_GCFGβ request the priority group configuration for RxDCB_CMD_PGRX_SCFGβ set the priority group configuration for RxDCB_CMD_PFC_GCFGβ request the priority flow control configurationDCB_CMD_PFC_SCFGβ set the priority flow control configurationDCB_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 deviceDCB_CMD_GNUMTCSβ get the number of traffic classes currently supportedDCB_CMD_SNUMTCSβ set the number of traffic classesDCB_CMD_PFC_GSTATEβ the manpage literally just says-- undescribed --π that's all we getDCB_CMD_PFC_SSTATEβ also-- undescribed --πDCB_CMD_BCN_GCFGβ-- undescribed --, yeah same energyDCB_CMD_BCN_SCFGβ-- undescribed --, moving on bestieDCB_CMD_GAPPβ get application protocol configurationDCB_CMD_SAPPβ set application protocol configurationDCB_CMD_IEEE_SETβ set IEEE 802.1Qaz configurationDCB_CMD_IEEE_GETβ get IEEE 802.1Qaz configurationDCB_CMD_GDCBXβ get DCBX engine configurationDCB_CMD_SDCBXβ set DCBX engine configurationDCB_CMD_GFEATCFGβ get DCBX features flagsDCB_CMD_SFEATCFGβ set DCBX features negotiation flagsDCB_CMD_CEE_GETβ get CEE aggregated configurationDCB_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms