ethnl_update_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 by ethnl_update_profile. so like, it comes in from the driver, gets a lil glow-up from us πŸ’…
  • nests β€” the nest attr ETHTOOL_A_COALESCE_*X_PROFILE used to set the profile. this is your vibe check for what to apply πŸ”₯
  • mod β€” pointer to a bool for 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_MODERATION attr
    • ETHTOOL_A_IRQ_MODERATION_USEC attr
    • ETHTOOL_A_IRQ_MODERATION_PKTS attr
    • ETHTOOL_A_IRQ_MODERATION_COMPS attr
    • ...
  • Nested ETHTOOL_A_PROFILE_IRQ_MODERATION attr
    • ETHTOOL_A_IRQ_MODERATION_USEC attr
    • ETHTOOL_A_IRQ_MODERATION_PKTS attr
    • ETHTOOL_A_IRQ_MODERATION_COMPS attr

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 🌈

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