STRUCT DPSW_REFLECTION_CFG(9)
π 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 isDPSW_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_idis conditionally valid β only when the type isDPSW_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
- 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