ENUM EFX_TC_EM_PSEUDO_TYPE(9)
π enum efx_tc_em_pseudo_type(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one is a lil enum from the sfc driver and it's lowkey the glue that keeps your encap matches from stepping on each other. let's get into it π«Ά
πΈ NAME πΈ
enum efx_tc_em_pseudo_type β the pseudo type of a &struct efx_tc_encap_match, iykyk π
β¨ SYNOPSIS β¨
enum efx_tc_em_pseudo_type {
EFX_TC_EM_DIRECT ,
EFX_TC_EM_PSEUDO_MASK ,
EFX_TC_EM_PSEUDO_OR
};
π Constants π
three constants, no more no less, and each one is a whole personality π₯
EFX_TC_EM_DIRECTβ this one is the real deal: an actual HW entry in the Outer Rule table, not a pseudo. so the hardware index sitting instruct efx_tc_encap_match.fw_idis valid π no cap.EFX_TC_EM_PSEUDO_MASKβ registered by an encap match that includes a match on an optional field (currentlyip_tosand/orudp_sport), and its whole job is to prevent an overlapping encap match _without_ optional fields π€ it's giving bouncer at the club fr fr. here's the tea tho: the pseudo encap match may be referenced again by an encap match with different values for these fields β but all masks must match the first (stored in ourchild_*fields). periodt πEFX_TC_EM_PSEUDO_ORβ registered by an fLHS rule that fits in the OR table π thestruct efx_tc_lhs_rulealready holds the HW OR entry, so that's handled. and heads up: only one reference to this encap match may exist π¨ like, one (1) singular reference. don't be greedy.
π¦ Description π¦
so what are these even for? they're used to classify "pseudo" encap matches β and a pseudo encap match is one that doesn't refer to an entry in hardware. instead, it indicates that a section of the match space is in use by another Outer Rule. it's not a real HW entry, it's a little sign that says "occupied bestie, move along" πβ¨
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/sfc/tc.h struct efx_tc_mac_pedit_action(9)struct efx_tc_action_set(9)struct efx_tc_state(9)
and that's the whole page, bestie!! π this icon came to you from ./drivers/net/ethernet/sfc and it's stamped October 2026 β go forth and pseudo-match responsibly ππ¦
π¦ 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