i40e_get_veb_tc_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_get_veb_tc_stats β€” the kernel API manual, bestie edition ✨

Okay so real talk, we're in the Kernel API Manual today and the function we're obsessing over is i40e_get_veb_tc_stats(9). It's an i40e girlie, she lives under ./drivers/net/ethernet/intel/i40e, and her whole personality is copying VEB TC stats into a formatted structure. Iconic, honestly.


πŸŽ€ NAME πŸŽ€

i40e_get_veb_tc_stats β€” copies VEB TC statistics into a formatted structure. That's it, that's the vibe. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct i40e_cp_veb_tc_stats i40e_get_veb_tc_stats (struct
i40e_veb_tc_stats *tc , unsigned int i );

Yes bestie, she returns a whole struct i40e_cp_veb_tc_stats. Not a pointer, not an int β€” the actual struct. Main character behavior tbh. πŸ‘‘


🌸 ARGUMENTS 🌸

  • tc β€” this is the TC statistics situation inside the VEB structure, like veb->tc_stats. She brought the data, you just gotta receive it. πŸ’–
  • i β€” the index of the traffic class inside that (veb->tc_stats) structure that you wanna copy. Lowkey the lil selector of which TC you're pulling out. 🎯

🌈 DESCRIPTION 🌈

So here's the tea: this function copies the VEB TC statistics out of a structure of arrays β€” that's veb->tc_stats β€” and drops them into a one dimensional structure called i40e_cp_veb_tc_stats. Array-of-arrays to flat, no cap. 🫢

The whole point is that it produces a formatted i40e_cp_veb_tc_stats structure of the VEB TC statistics for the given TC. You hand her the stats and the index, she hands you back something neat and usable. It's giving "let me organize that for you" energy and honestly we stan. 🧚


πŸ”₯ SEE ALSO πŸ”₯

Grab a snack bestie, this list is long and honestly she ate πŸ’€ β€” it's all from the kernel file ./drivers/net/ethernet/intel/i40e/i40e_ethtool.c:


Like, that's the whole friend group. Go read them if you wanna be in the know. Iykyk. 🫢

And that's a wrap, bestie! This page came straight outta ./drivers/net/ethernet/intel/i40e, dated October 2026, from the Kernel API Manual β€” so you know it's the real deal. Mwah, slay, go copy those TC stats responsibly πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from