ethtool_rxf...r_can_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ethtool_rxfh_indir_can_resize ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” this one's a little function with a big job and honestly? she ate.


🌸 NAME 🌸

ethtool_rxfh_indir_can_resize β€” the vibe check that tells you whether context 0's indir table is allowed to resize πŸ’–


✨ SYNOPSIS ✨

bool ethtool_rxfh_indir_can_resize(struct net_device *dev, const u32 *tbl,
                                   u32 old_size, u32 new_size);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the network device, obviously. main character energy 🫢
  • tbl β€” the indirection table itself, living its life
  • old_size β€” how many entries the table has right now
  • new_size β€” how many entries it wants to have, slay

🌼 DESCRIPTION 🌼

So here's the tea β˜•: this function validates that tbl can be resized from old_size to new_size without data loss. Literally just checking, no cap.

It uses the user_size floor from context 0. And when user_size is zero? That means the table isn't user-configured, so the resize always succeeds β€” iconic behaviour tbh. ✨

Also super important: it's read-only. It does not modify the table. Not even a little. Not even a smidge. πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

  • true β€” yup, the resize is possible, go off πŸ‘‘
  • false β€” nope, not today πŸ’€

🧚 SEE ALSO 🧚

Kernel file ./net/ethtool/common.c, bestie squad edition:


lowkey obsessed with how tidy this one is β€” one bool, zero side effects, she's got her life together πŸ’…

and that's the whole page bestie! 🌈 this lil gem lives in ./net/ethtool and was dated October 2026 β€” go read the other ethtool_rxf...r_can_resize(9) entries when you're done, iykyk πŸ“πŸ’œ

πŸ“¦ where this page comes from