efx_tc_mangle(9)
π efx_tc_mangle β bestie's guide to handling a single 32-bit (or less) pedit π
okay so real talk, this is a page from the Kernel API Manual and it's all about one lil' function that handles exactly one pedit β and by "one" we mean 32-bit or less, no cap. let's get into it β¨
πΈ SYNOPSIS πΈ
int efx_tc_mangle (struct efx_nic *efx , struct efx_tc_action_set *act ,
const struct flow_action_entry *fa , struct efx_tc_mangler_state *mung ,
struct netlink_ext_ack *extack , struct efx_tc_match *match );
it's giving six-parameter main character energy, and honestly? iconic. π
π ARGUMENTS π
efxβ the NIC we're installing a flow rule on π«Ά (yes, the actual hardware, we're being brave today)actβ the action set (cursor) to update β¨ this is the thing that gets moved alongfaβ theFLOW_ACTION_MANGLEaction metadata π the vibes, the details, the loremungβ accumulator for partial mangles π¦ lowkey a little bucket where half-finished mangles chillextackβ netlink extended ack for reporting errors π because when things go wrong we like detailsmatchβ original match used along with the mangle action π the context, the receipts, the origin story
π₯ DESCRIPTION π₯
so basically: this function identifies the fields written by a FLOW_ACTION_MANGLE, and then records the partial mangle state in mung. π
and here's the slay part β if this mangle completes an earlier partial mangle, it consumes and applies it to act by calling efx_tc_complete_mac_mangle. π like, the two halves finally meet and it's beautiful. periodt. π
ngl, this is the kind of function that does one thing and does it well. no notes. π§
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/ethernet/sfc/tc.cβ TC conntrack sequences(9) π struct efx_tc_mangler_state(9) πefx_tc_incomplete_mangle(9) β
and that's the whole vibe check! π this page came to you straight from ./drivers/net/ethernet/sfc, dated October 2026 β go forth and mangle responsibly, bestie πβ¨π¦
π¦ 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