STRUCT CEE_PG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct cee_pg(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– β€” today's main character is struct cee_pg, the CEE Priority-Group managed object. yes, that's a lot of capital letters. no, we're not scared of them. 🫢

🌸 NAME 🌸

struct cee_pg β€” the CEE Priority-Group managed object, fr fr πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

struct cee_pg {
    __u8 willing;
    __u8 error;
    __u8 pg_en;
    __u8 tcs_supported;
    __u8 pg_bw[CEE_DCBX_MAX_PGS];
    __u8 prio_pg[CEE_DCBX_MAX_PGS];
 };

like, look at her. six members, all __u8, two of them arrays. she's compact, she's tidy, she's iconic. πŸ’…


πŸŽ€ Members πŸŽ€

  • willing β€” the willing bit in the PG tlv. she's willing, okay? πŸ’–
  • error β€” the error bit in the PG tlv. not the vibe we want, but she's there. 😭
  • pg_en β€” the enable bit of the PG feature. flip her on and the PG feature is on. periodt. ✨
  • tcs_supported β€” number of traffic classes supported. count 'em. 🧚
  • pg_bw β€” bandwidth percentage for each priority group. one percentage per group, no cap. 🌈
  • prio_pg β€” priority to PG mapping, indexed by priority. iykyk πŸ¦‹
quick vibe check: pg_bw and prio_pg are both sized CEE_DCBX_MAX_PGS, so don't go indexing past that, bestie. πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./include/uapi/linux/dcbnl.h
  • struct cee_pfc(9)
  • struct dcb_peer_app_info(9)
  • enum dcbnl_commands(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)

like, the whole friend group showed up. go read their pages too, they're all slay. πŸ‘‘


and that's the whole page, bestie β€” no notes, we ate and left zero crumbs. πŸ“ this little masterpiece lives in ./include/uapi/linux and is dated October 2026, so mark your calendar and stan responsibly. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from