iavf_fill_adv_rss_gtp_hdr(9)
π 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 thevirtchnlprotocol 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 π
0on success β slay β¨-EOPNOTSUPPif thepacket_hdrsvalue is unsupported β aka your bitmask said something unhinged and the function said "not today" π
π SEE ALSO π
- Kernel file:
./drivers/net/ethernet/intel/iavf/iavf_adv_rss.cβ go read the source, it's right there π§ iavf_fill_adv_rss_ip4_hdr(9)iavf_fill_adv_rss_ip6_hdr(9)iavf_fill_adv_rss_tcp_hdr(9)iavf_fill_adv_rss_udp_hdr(9)iavf_fill_adv_rss_sctp_hdr(9)iavf_fill_adv_rss_cfg_msg(9)iavf_find_adv_rss_cfg_by_hdrs(9)iavf_print_adv_rss_cfg(9)
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
- 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