ENUM PPE_CNT_SIZE_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum ppe_cnt_size_type(9) β€” the Kernel API Manual, bestie edition

okay so you're in the kernel API manual, section 9, and we're talking about enum ppe_cnt_size_type β€” the PPE counter size type. yes it's a whole enum about counter sizes. no it's not boring, it's giving hardware accounting realness ✨


🌸 NAME

enum ppe_cnt_size_type β€” the PPE counter size type, fr fr πŸŽ€


✨ SYNOPSIS

enum ppe_cnt_size_type {
    PPE_PKT_CNT_SIZE_1WORD ,
    PPE_PKT_CNT_SIZE_3WORD ,
    PPE_PKT_CNT_SIZE_5WORD

};

like, that's the whole vibe. three constants, that's it, she's concise πŸ’…


πŸ¦‹ Constants

  • PPE_PKT_CNT_SIZE_1WORD β€” counter size with a single register. one word, one register, lowkey minimalist πŸŽ€
  • PPE_PKT_CNT_SIZE_3WORD β€” counter size with a table of 3 words. it's giving structured data 🌸
  • PPE_PKT_CNT_SIZE_5WORD β€” counter size with a table of 5 words. five words of pure main character energy πŸ‘‘

πŸ’– Description

so here's the lore: PPE takes the different register size to record the packet counters 🫢. it uses a single register, or a register table with 3 words or 5 words β€” that's the whole spectrum, no in-between.

and bestie, the counter with table size 5 words also records the drop counter πŸ’€ like yes she does double duty, we love a multitasker.

there are also some other counter types occupying sizes less than 32 bits, which is not covered by this enumeration type. so don't come for this enum for those, she's simply not that girl for sub-32-bit sizes, and that's on periodt πŸ™ˆ


πŸ”₯ SEE ALSO

  • Kernel file ./drivers/net/ethernet/qualcomm/ppe/ppe_debugfs.c
  • enum ppe_cnt_type(9)
  • struct ppe_debugfs_entry(9)

ngl, if you're poking at PPE debugfs stuff, go read those two too β€” they're literally right there in the same file, iykyk πŸ’œ

that's the whole page, bestie πŸ’– sourced from ./drivers/net/ethernet/qualcom... and dated October 2026 β€” go off, and remember: counter sizes are a lifestyle, not a phase 🌈✨

πŸ“¦ where this page comes from