ENUM DPSW_COUNTER(9)
π 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. lowercaseBYTESglow-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
- 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