ethtool_rxf...r_can_resize(9)
π 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 lifeold_sizeβ how many entries the table has right nownew_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:
ethtool_forced_speed_maps_init(9)ethtool_rxfh_indir_lost(9)ethtool_rxfh_indir_resize(9)ethtool_rxfh_ctxs_can_resize(9)ethtool_rxfh_ctxs_resize(9)
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
- 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