STRUCT DPSW_LINK_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual β€” yes that's the manual name, we're in the big-leagues kernel docs now, and this page is literally all about one lil struct. Buckle up πŸŽ€


✨ NAME ✨

struct dpsw_link_state β€” the structure that represents the DPSW link state, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dpsw_link_state {
    u32 rate;
    u64 options;
    u8 up;
 };

that's the whole vibe right there, three fields, immaculate, iconic πŸ”₯


πŸ’– Members πŸ’–

  • rate β€” Rate. that's it, that's the field πŸ“
  • options β€” a mask of the available options, and you're gonna wanna use the 'DPSW_LINK_OPT_<X>' values in there, iykyk ⭐
  • up β€” 0 covers two cases, bestie: down and disconnected (rude that they share a number but ok πŸ™ˆ), and 1 means up 🧚
lowkey important: 0 is doing double duty for down and disconnected β€” don't go thinking it's one or the other, fr fr πŸ’€

🌈 SEE ALSO 🌈

the kernel file you'll wanna peek at, literally right here: ./drivers/net/ethernet/freescale/dpaa2/dpsw.h πŸ‘‘

and the whole friend group, all of these cuties:

  • 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_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)

like I said β€” the whole group chat πŸ˜­πŸ’œ


mwah, that's the page! 🫢 this lil drop came from the kernel source at ./drivers/net/ethernet/freesca... (that's the version/source line, she's a lil truncated but she's doing her best) and it's dated October 2026 β€” mark your calendars bestie, struct dpsw_link_state(9) said hi and she ate πŸ’…βœ¨

πŸ“¦ where this page comes from