ice_tc_set_ipv4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to true for 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 πŸ“


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