STRUCT DPSW_REFLECTION_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dpsw_reflection_cfg(9) β€” from the Kernel API Manual, bestie πŸŽ€

Okay so picture this: you're deep in the kernel API docs (iykyk) and you bump into struct dpsw_reflection_cfg β€” and honestly? She's that girl. This struct is literally the structure representing the mirroring config. Mirroring. As in copying frames. Main character energy fr fr. ✨


🌸 NAME 🌸

struct dpsw_reflection_cfg β€” the structure that represents the mirroring config, no cap πŸͺžπŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the whole glow-up, laid out exactly:

struct dpsw_reflection_cfg {
    enum dpsw_reflection_filter filter;
    u16 vlan_id;
 };

That's it. Two members. Lowkey minimalist queen πŸ‘‘ (and yes, the closing brace in the original is indented like that β€” we don't touch the code, ever, periodt).


πŸ’œ Members πŸ’œ

  • filter β€” this is the filter type for frames to be mirrored 🎯 like, which frames are we even copying? That's her job.
  • vlan_id β€” the VLAN ID to mirror; valid only when the type is DPSW_INGRESS_VLAN ⚠️ (so don't come for her with a VLAN ID when the type isn't that, she will not respond πŸ™ˆ).
Heads up bestie: vlan_id is conditionally valid β€” only when the type is DPSW_INGRESS_VLAN. That's a technical caveat, not a vibe, so please respect it 🫢

🌈 SEE ALSO 🌈

The kernel file herself:

./drivers/net/ethernet/freescale/dpaa2/dpsw.h πŸ—‚οΈβœ¨

And the whole friend group, in the exact order they showed up (we love a full guest list πŸ’…):

  • 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)
  • 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_lag_cfg(9)

Every single one. Count them. Obsessed with the thoroughness honestly πŸ§šπŸ’«


Okay that's the whole page!! Sending you the biggest air hug 🫢 β€” this came from ./drivers/net/ethernet/freesca... (a little truncated in the footer, she's mysterious like that πŸ’€), dated October 2026, and stamped struct dpsw_reflection_cfg(9) on the way out. Go mirror some frames bestie, slay πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from