__i40e_reprogram_flex_pit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __i40e_reprogram_flex_pit β€” a kernel API manual moment, from the <pink>Kernel API Manual</pink> girlies ✨

Okay bestie, welcome to the <hotpink>NAME</hotpink> section, because yes we're doing this properly:

  • __i40e_reprogram_flex_pit β€” Re-program specific FLX_PIT table πŸ’…

🌈 SYNOPSIS

void __i40e_reprogram_flex_pit (struct i40e_pf *pf , struct list_head
*flex_pit_list , int flex_pit_start );

That's the whole vibe. Void return, no drama, no return value to check. Periodt.


πŸŽ€ ARGUMENTS

  • pf β€” Pointer to the PF structure. That's the whole glow-up, she's just a pointer to the PF, okurrr 🫢
  • flex_pit_list β€” list of flexible src offsets in use. Lowkey the main character here πŸ¦‹
  • flex_pit_start β€” index to first entry for this section of the table. Where the section starts, that's it, that's the rule ⭐

✨ DESCRIPTION

So here's the lore, bestie. In order to handle flexible data, the hardware uses a table of values called the <purple>FLX_PIT table</purple>. This table is used to indicate which sections of the input correspond to what PIT index values. Cute concept, right? πŸ™ˆ

But unfortunately, hardware is very restrictive about programming this table. Like, unnecessarily restrictive. Not me defending the hardware, I'm just saying πŸ’€

The rules she demands, no cap:

  • Entries must be ordered by src_offset in ascending order, without duplicates. Zero exceptions.
  • Additionally, unused entries must be set to the unused index value.
  • And they must have valid size and length according to the src_offset ordering.

This function will reprogram the FLX_PIT register from a book-keeping structure that we guarantee is already ordered correctly, and has no more than 3 entries. Three! Max! πŸ“ She's on a strict little budget, okurrr.

And to make things easier, we only support flexible values of one word length, rather than allowing variable length flexible values. So: one word length, always, forever, periodt. 🌸


πŸ‘‘ SEE ALSO

The whole friend group, fr fr β€” <cyan>Kernel file ./drivers/net/ethernet/intel/i40e/i40e_ethtool.c</cyan>:


Okay that's the page, bestie, you ate that πŸ’…

Huge slay sign-off moment: this one comes to you from <mint>./drivers/net/ethernet/intel/i40e</mint>, dated <yellow>October 2026</yellow>, and she's sitting pretty under the <lavender>Kernel API Manual</lavender> name β€” __i40e_reprogram_flex_pit(9), mwah πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from