ethnl_update_profile(9)
π ethnl_update_profile(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one lives in the ethnl corner of the kernel and it's literally all about pulling a profile nest (with its little child nests, so cute) out of userspace. yes, it's giving netlink energy and we're obsessed π
β¨ SYNOPSIS β¨
int ethnl_update_profile (struct net_device *dev , struct dim_cq_moder
__rcu **dst , const struct nlattr *nests , bool *mod , struct
netlink_ext_ack *extack );
like, that's the whole signature, no cap π«Ά
πΈ ARGUMENTS πΈ
devβ the netdevice to update the profile on. it's the main character here πdstβ the profile that got grabbed from the driver and then modified byethnl_update_profile. so like, it comes in from the driver, gets a lil glow-up from us πnestsβ the nest attrETHTOOL_A_COALESCE_*X_PROFILEused to set the profile. this is your vibe check for what to apply π₯modβ pointer to aboolfor modification tracking. it keeps the receipts on whether anything actually changed ngl πextackβ Netlink extended ack. classic netlink, always got something to say π
π¦ DESCRIPTION π¦
okay so the layout of nests is genuinely iconic, let me walk you through it like a little diagram in a group chat β¨
Nested ETHTOOL_A_COALESCE_*X_PROFILE attr, and inside that:
- Nested
ETHTOOL_A_PROFILE_IRQ_MODERATIONattrETHTOOL_A_IRQ_MODERATION_USECattrETHTOOL_A_IRQ_MODERATION_PKTSattrETHTOOL_A_IRQ_MODERATION_COMPSattr...
- Nested
ETHTOOL_A_PROFILE_IRQ_MODERATIONattrETHTOOL_A_IRQ_MODERATION_USECattrETHTOOL_A_IRQ_MODERATION_PKTSattrETHTOOL_A_IRQ_MODERATION_COMPSattr
like, it repeats like that β nest inside nest, attrs inside attrs, it's giving russian dolls but make it ethtool πͺπ the ... is literally there in the original, so yes bestie, it keeps going in that pattern, iykyk.
π RETURN π
0 on success, or a negative error code. slay if it's 0, sad girl hours if it's negative π
π SEE ALSO π
- Kernel file
./net/ethtool/coalesce.c coalesce_put_profile(9)ethnl_update_irq_moder(9)
go read those next, bestie, they're fr fr worth it π«Ά
and that's the whole page, periodt π this one shipped out of ./net/ethtool in October 2026 β mwah, go forth and profile your coalesce πβ¨
π¦ 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