STRUCT EFX_TC_MAC_PEDIT_ACTION(9)
π NAME
struct efx_tc_mac_pedit_action β the mac pedit action fields, bestie. That's it, that's the whole vibe. β¨
Oh and hii, welcome to the Kernel API Manual β this lil page is struct efx_t...pedit_action(9) and it lives rent-free in ./drivers/net/ethernet/sfc. π«Ά
β¨ SYNOPSIS β¨
Okay so here's the struct, and no I did not touch a single character of it, I would never:
struct efx_tc_mac_pedit_action {
u8 h_addr[ETH_ALEN];
struct rhash_head linkage;
refcount_t ref;
u32 fw_id;
};
Look at her. Gorgeous. Structurally sound. Main character energy fr fr. π
π MEMBERS π
h_addrβ the mac address field of the ethernet header. That's the actual address getting edited, the whole point of the situation. πlinkageβ the rhashtable reference. It's the little hookup that keeps this entry chained into the table, lowkey essential. πrefβ a reference count, typerefcount_t. Standard "how many people are holding onto me" situation, we love a counted queen. π§fw_idβ index of this entry in the firmware MAC address table. So like, its seat number in the firmware's own little address book. πΈ
π¦ DESCRIPTION π¦
So the tea is this: MAC address edits are indirected through a table in the hardware. That's it. That's the whole description. The struct is basically a lil handle into the hardware's own MAC address table, and the hardware does the actual editing β we're just here holding a reference and a fw_id pointing at the right slot. No cap. π«‘
Not me being obsessed with indirection β it's giving "don't do the work yourself, let the hardware table handle it" and honestly? Slay. π
π SEE ALSO π
Go touch some grass in the kernel file ./drivers/net/ethernet/sfc/tc.h, and then say hi to these besties:
struct efx_tc_action_set(9)enum efx_tc_em_pseudo_type(9)struct efx_tc_state(9)
Okay that's the whole page, you ate it, periodt. π β¨
This iconic lil number comes to you from ./drivers/net/ethernet/sfc, dated October 2026, and yes the manual still calls her struct efx_t...pedit_action(9) because truncation is eternal, iykyk. ππ¦π
π¦ 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