ENUM DPSW_ACTION(9)
π enum dpsw_action(9) β like, the whole Kernel API Manual page but make it make sense
okay bestie, so this is a page straight out of the Kernel API Manual, and it's about one tiny little enum that decides what happens to your special/control frames. it's giving "small but mighty" energy ngl π
β¨ NAME β¨
enum dpsw_action β the action-selection situation for special/control frames π
like, when a special frame or a control frame shows up, this enum is literally the thing that decides its fate. main character decision-making energy fr fr π
πΈ SYNOPSIS πΈ
enum dpsw_action {
DPSW_ACTION_DROP ,
DPSW_ACTION_REDIRECT
};
that's the whole thing! just two (2) constants in the roster, no more no less. she's compact, she's iconic, she slays π
π¦ Constants π¦
so here's the vibe check on each constant in the enum:
DPSW_ACTION_DROPβ drop the frame. that's it, that's the whole job. the frame simply does not get to continue, bye bye ππDPSW_ACTION_REDIRECTβ redirect the frame to the control port. not dropped, justβ¦ rerouted bestie, she's going somewhere else π
π SEE ALSO π
first up, the kernel file where all this lives β go look at it if you're curious:
- Kernel file
./drivers/net/ethernet/freescale/dpaa2/dpsw.h
and now the extended friend group (yes, all of them, no skipping, I promised I'd keep every single one π«Ά):
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)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)enum dpsw_counter(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)
ok real talk: this whole page is filed under source ./drivers/net/ethernet/freesca... and dated October 2026 β so yeah, that's the version and date situation, noting it here so nobody comes for me π
β¨
and that's the page bestie, go forth and redirect 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