iavf_fill_adv_rss_gtp_hdr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iavf_fill_adv_rss_gtp_hdr β€” the kernel API manual, section 9 bestie ✨

okay so this is a page from the Kernel API Manual, section 9, and it's all about iavf_fill_adv_rss_gtp_hdr. yes that's a mouthful. say it with me. no cap, it's giving "someone's cat walked across the keyboard" but it's actually iconic πŸŽ€


✨ NAME ✨

iavf_fill_adv_rss_gtp_hdr β€” fills in the GTP-related RSS protocol headers. literally its whole job. it fills. headers. GTP-related ones. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int iavf_fill_adv_rss_gtp_hdr (struct virtchnl_proto_hdrs *proto_hdrs ,
u32 packet_hdrs , u64 hash_flds );

three args, one int back. simple. elegant. we love to see it 🫢


🌸 ARGUMENTS 🌸

  • proto_hdrs β€” a pointer to the virtchnl protocol headers structure that we're gonna populate. it's the blank canvas bestie, we're painting on it 🎨
  • packet_hdrs β€” a bitmask of the packet header types to configure. bitmask!! very demure, very mindful, very bitwise πŸ’…
  • hash_flds β€” the RSS hash field configuration. this is the "what do we actually hash on" of it all.

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” this function populates the virtchnl protocol header structure with the appropriate GTP-related header types, and it picks them based on whatever you passed in packet_hdrs. like, it reads your bitmask and goes "oh period, i know exactly what you want" πŸ‘‘

the supported situations are:

  • GTPC
  • GTPU with extension headers
  • uplink/downlink PDU types

and for certain GTPU types, it also appends an IPv4 header to enable hashing on the destination IP address. yes bestie, it just adds one. on purpose. for the hash. it's not a bug, it's a feature, iykyk 🌈


πŸ’€ RETURN πŸ’€

  • 0 on success β€” slay ✨
  • -EOPNOTSUPP if the packet_hdrs value is unsupported β€” aka your bitmask said something unhinged and the function said "not today" πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group fr fr, go say hi to all of them πŸ’œ


okay that's the page!! this one came out of ./drivers/net/ethernet/intel/iavf and it's dated October 2026. mwah, take care of her, she's a main character πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from