ENUM DPSW_ACTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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