ice_tc_set_ipv4(9)
π ice_tc_set_ipv4 β kernel API manual, bestie edition π§
okay so this is a page from the Kernel API Manual (yes, the real one, section 9, we're fancy now π) and it's all about one little function that yoinks IPv4 addresses out of a TC flower filter. let's get into it β¨
πΈ NAME πΈ
ice_tc_set_ipv4 β parses IPv4 addresses out of a TC flower filter. that's it, that's the whole job, and it does it slayfully π
β¨ SYNOPSIS β¨
int ice_tc_set_ipv4 (struct flow_match_ipv4_addrs *match , struct
ice_tc_flower_fltr *fltr , struct ice_tc_flower_lyr_2_4_hdrs *headers ,
bool is_encap );
it returns an int, mwah π β copy it exactly if you're typing it out, no cap, don't let autocorrect touch it.
π ARGUMENTS π
matchβ pointer to the flow match structure. this is where the matched stuff lives π«Άfltrβ pointer to the filter structure. the main character of the whole operation ngl πheadersβ inner or outer header fields. you pick which layer you're looking at, iconic behaviour honestly π₯is_encapβ set this totruefor the tunnel IPv4 address. literally just that π¦
π SEE ALSO π
the kernel file where all the magic happens, plus the whole friend group of related functions β go say hi to all of them, they're all in ./drivers/net/ethernet/intel/ice/ice_tc_lib.c π
- Kernel file
./drivers/net/ethernet/intel/ice/ice_tc_lib.c ice_tc_count_lkups(9)ice_tc_fill_rules(9)ice_tc_tun_get_type(9)ice_locate_vsi_using_queue(9)ice_tc_forward_action(9)ice_add_tc_flower_adv_fltr(9)ice_tc_set_pppoe(9)ice_tc_set_ipv6(9)ice_tc_set_tos_ttl(9)ice_tc_set_port(9)ice_parse_gtp_type(9)ice_parse_cls_flower(9)ice_add_switch_fltr(9)ice_prep_adq_filter(9)ice_handle_tclass_action(9)ice_parse_tc_flower_actions(9)ice_del_tc_fltr(9)ice_add_tc_fltr(9)ice_find_tc_flower_fltr(9)ice_add_cls_flower(9)ice_del_cls_flower(9)ice_replay_tc_fltrs(9)
bestie note: every single one of these is written with the (9) suffix because they're kernel API pages, so don't come for me about the parentheses, that's just how the section works π
and that's the whole page, mwah π this one lives in ./drivers/net/ethernet/intel/ice, dated October 2026 β go read the source if you wanna know more, i believe in you, 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