STRUCT EFX_TC_ACTION_SET(9)
π struct efx_tc_action_set(9) π
okay so bestie, this page is straight from the Kernel API Manual and itβs all about struct efx_tc_action_set. no cap, itβs giving main-character data structure energy. letβs get into it. π
π NAME π
struct efx_tc_action_set β collection of tc action fields. literally what it says on the tin, bestie. itβs the struct that gathers all those tc action fields together, and honestly? iconic. π
β¨ SYNOPSIS β¨
okay so hereβs the struct definition in all its glory β copy it exactly, no editing, iykyk:
struct efx_tc_action_set {
u16 vlan_push:2;
u16 vlan_pop:2;
u16 decap:1;
u16 do_nat:1;
u16 do_ttl_dec:1;
u16 deliver:1;
__be16 vlan_tci[2];
__be16 vlan_proto[2];
struct efx_tc_counter_index *count;
struct efx_tc_encap_action *encap_md;
struct list_head encap_user;
struct efx_tc_action_set_list *user;
struct list_head count_user;
u32 dest_mport;
struct efx_tc_mac_pedit_action *src_mac;
struct efx_tc_mac_pedit_action *dst_mac;
u32 fw_id;
struct list_head list;
};
π Members π
vlan_pushβ the number of vlan headers to push. periodt. π¦vlan_popβ the number of vlan headers to pop. slay. β¨decapβ used to indicate a tunnel header decapsulation should take place. itβs giving βbye, tunnel headerβ energy. πdo_natβ perform NAT/NPT with values returned by conntrack match. no cap, conntrack match said what it said. π₯do_ttl_decβ used to indicate IP TTL / Hop Limit should be decremented. lowkey important, donβt skip. βdeliverβ used to indicate a deliver action should take place. yes bestie, delivery. πvlan_tciβ tci fields for vlan push actions. plural, two of them. π«Άvlan_protoβ ethernet types for vlan push actions. also plural. πΈcountβ counter mapping. mapping? yes. counter mapping. πencap_mdβ encap entry intc_encap_httable. say hi to the table. β¨encap_userβ linked list of encap users (encap_md->users). the whole user-list vibe. π§userβ owning action-set-list. Only populated ifencap_mdis; used byefx_tc_update_encapfallback handling. πcount_userβ linked list of counter users (counter->users). same energy. πdest_mportβ destination mport. thatβs it. mport destination. πsrc_macβ source mac entry intc_mac_httable. mac entry, source flavored. πdst_macβ destination mac entry intc_mac_httable. destination flavored mac entry. π¦fw_idβ index of this entry in firmware actions table. index realness. πlistβ linked list of tc actions. the list of lists. π
π SEE ALSO π
go look at these if youβre obsessed:
- Kernel file
./drivers/net/ethernet/sfc/tc.hstructefx_tc_mac_pedit_action(9),enum efx_tc_em_pseudo_type(9),struct efx_tc_state(9).
made with π from ./drivers/net/ethernet/sfc, dated October 2026, and the footer is still living its best life as struct efx_tc_action_set(9). periodt. π
π¦ 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