STRUCT DPSW_LINK_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is a page straight out of the Kernel API Manual, and it's about one tiny little struct that holds your DPSW link configuration. she's small. she's mighty. she's giving "two fields and a dream" energy. let's get into it πŸŽ€


✨ NAME ✨

struct dpsw_link_cfg β€” the structure that represents, wait for it, DPSW link configuration. iconic, honestly.


🌸 SYNOPSIS 🌸

struct dpsw_link_cfg {
    u32 rate;
    u64 options;
 };

look at her. two members. no notes. 🫢


πŸ¦‹ Members πŸ¦‹

so these are the fields you're gonna be meeting, bestie:

  • rate β€” the rate. that's the whole vibe of this field, it's the rate ✨
  • options β€” the mask of available options; use 'DPSW_LINK_OPT_<X>' values in here. that <X> is literally a placeholder, so swap in the real deal, k? 😭
no cap, options is a mask, so you're combining those DPSW_LINK_OPT_ values together, not just picking one. iykyk πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

like, all of these are friends of the family, go say hi:

  • Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpsw.h
  • 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_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)

and that's the whole page, bestie β€” go forth and configure your links πŸ§šπŸ’–

this lil masterpiece came from ./drivers/net/ethernet/freesca... and it's dated October 2026. bye bestie, mwah πŸ’œ

πŸ“¦ where this page comes from