STRUCT EFX_TC_MAC_PEDIT_ACTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, type refcount_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