ENUM DPSW_COUNTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum dpsw_counter(9)

ok so bestie, welcome to the Kernel API Manual β€” this one's a little enum from the DPAA2 switch world and it's literally just a list of counters. no vibes-heavy logic, no scary pointers, just "what are we counting bestie?" energy. it's giving spreadsheet but make it ✨kernel✨.


🌸 NAME 🌸

enum dpsw_counter β€” Counters types πŸŽ€

like. the types of counters. that's the whole thing. short king.


✨ SYNOPSIS ✨

ok here's the lineup, no cap, exactly as the kernel wrote it:

enum dpsw_counter {
    DPSW_CNT_ING_FRAME ,
    DPSW_CNT_ING_BYTE ,
    DPSW_CNT_ING_FLTR_FRAME ,
    DPSW_CNT_ING_FRAME_DISCARD ,
    DPSW_CNT_ING_MCAST_FRAME ,
    DPSW_CNT_ING_MCAST_BYTE ,
    DPSW_CNT_ING_BCAST_FRAME ,
    DPSW_CNT_ING_BCAST_BYTES ,
    DPSW_CNT_EGR_FRAME ,
    DPSW_CNT_EGR_BYTE ,
    DPSW_CNT_EGR_FRAME_DISCARD ,
    DPSW_CNT_EGR_STP_FRAME_DISCARD ,
    DPSW_CNT_ING_NO_BUFF_DISCARD

};

(not me noticing BCAST_FRAMES is singular and BCAST_BYTES is plural πŸ™ˆ that's canon, don't touch it, that's the source.)


πŸ¦‹ Constants πŸ¦‹

okay so every single member, one by one, because we do not skip. πŸ’…

  • DPSW_CNT_ING_FRAME β€” Counts ingress frames. frames coming in, bestie. 🫢
  • DPSW_CNT_ING_BYTE β€” Counts ingress bytes. yes, bytes, plural-coded, singular-named, iconic.
  • DPSW_CNT_ING_FLTR_FRAME β€” Counts filtered ingress frames. the ones the filter said "not today" to ✨
  • DPSW_CNT_ING_FRAME_DISCARD β€” Counts discarded ingress frame. yes it says "frame" singular. we respect it. 😀
  • DPSW_CNT_ING_MCAST_FRAME β€” Counts ingress multicast frames. one frame to many besties πŸ“£
  • DPSW_CNT_ING_MCAST_BYTE β€” Counts ingress multicast bytes. same energy, byte edition.
  • DPSW_CNT_ING_BCAST_FRAME β€” Counts ingress broadcast frames. screaming into the whole VLAN πŸ—£οΈ
  • DPSW_CNT_ING_BCAST_BYTES β€” Counts ingress broadcast bytes. lowercase BYTES glow-up, we love a plot twist πŸ’€
  • DPSW_CNT_EGR_FRAME β€” Counts egress frames. frames leaving. main character exit πŸšͺ✨
  • DPSW_CNT_EGR_BYTE β€” Counts egress bytes. bye-bye bytes πŸ‘‹
  • DPSW_CNT_EGR_FRAME_DISCARD β€” Counts discarded egress frames. they did NOT make it out 😭
  • DPSW_CNT_EGR_STP_FRAME_DISCARD β€” Counts egress STP discarded frames. STP said no πŸ’…
  • DPSW_CNT_ING_NO_BUFF_DISCARD β€” Counts ingress no buffer discarded frames. no buffer, no entry, the door was locked πŸ”₯
fr fr that's all 13. thirteen little counters. count them. i did. twice. 🧚

πŸ‘‘ SEE ALSO πŸ‘‘

bestie the cross-references go crazy here. like genuinely a whole friend group:

Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpsw.h πŸ“

and then, deep breath:

DPSW_OPT_FLOODING_DIS(9), DPSW_OPT_MULTICAST_DIS(9), DPSW_OPT_CTRL_IF_DIS(9), enum dpsw_component_type(9), enum dpsw_flooding_cfg(9), enum dpsw_broadcast_cfg(9), DPSW_IRQ_EVENT_LINK_CHANGED(9), DPSW_IRQ_EVENT_ENDPOINT_CHANGED(9), struct dpsw_irq_cfg(9), struct dpsw_attr(9), struct dpsw_ctrl_if_attr(9), struct dpsw_ctrl_if_pools_cfg(9), enum dpsw_action(9), struct dpsw_link_cfg(9), struct dpsw_link_state(9), struct dpsw_tci_cfg(9), enum dpsw_stp_state(9), struct dpsw_stp_cfg(9), enum dpsw_accepted_frames(9), struct dpsw_if_attr(9), struct dpsw_vlan_cfg(9), struct dpsw_vlan_if_cfg(9), enum dpsw_fdb_entry_type(9), struct dpsw_fdb_unicast_cfg(9), struct fdb_dump_entry(9), struct dpsw_fdb_multicast_cfg(9), enum dpsw_learning_mode(9), struct dpsw_fdb_attr(9), struct dpsw_fdb_cfg(9), enum dpsw_flood_type(9), struct dpsw_acl_cfg(9), struct dpsw_acl_if_cfg(9), struct dpsw_acl_fields(9), struct dpsw_acl_key(9), enum dpsw_acl_action(9), struct dpsw_acl_result(9), struct dpsw_acl_entry_cfg(9), enum dpsw_reflection_filter(9), struct dpsw_reflection_cfg(9), struct dpsw_lag_cfg(9)

like ok go off, entire networking stack 🫢


πŸŽ€ the sign-off πŸŽ€

this lil page lives over at ./drivers/net/ethernet/freesca... (yes the path got cropped in the footer, that's just how the man page do) and it's stamped October 2026 β€” so it's from the future, lowkey iconic. the manual name is enum dpsw_counter(9) and that's a wrap bestie, slay, go count some frames πŸ”₯πŸ’œπŸŒΈ

πŸ“¦ where this page comes from