axienet_eth...set_coalesce(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

axienet_ethtools_set_coalesce β€” okay so this is the function that sets the DMA interrupt coalescing count. That's it, that's the whole name, slay ✨

(this one lives in the Kernel API Manual, just so you know what you're reading 🫢)


🌸 SYNOPSIS 🌸

int axienet_ethtools_set_coalesce (struct net_device *ndev , struct
       ethtool_coalesce *ecoalesce , struct kernel_ethtool_coalesce
       *kernel_coal , struct netlink_ext_ack *extack );

Bestie look at that signature. Four pointers. Four. It's giving "my function takes the whole friend group" energy 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • ndev β€” pointer to net_device structure. yes the classic. the main character of netdev land πŸ‘‘
  • ecoalesce β€” pointer to ethtool_coalesce structure
  • kernel_coal β€” ethtool CQE mode setting structure
  • extack β€” extack for reporting error messages. it's the one who tells you what went wrong, very considerate of it ngl πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does this actually do? It implements the ethtool command for setting the DMA interrupt coalescing count on the Tx and Rx paths. Both. Not one. Both. periodt πŸ’…

And here's the fun part β€” you can trigger this whole thing from your linux prompt by running:

ethtool -C ethX rx-frames 5

That's literally the incantation. Type it, and this function wakes up and does its thing. iconic behavior honestly 🌈


⭐ RETURN ⭐

  • 0 β€” on success πŸŽ‰
  • Non-zero error value β€” on failure πŸ’€

(no in-between, no "maybe", it's a yes or a no and I respect the commitment)


πŸ”₯ SEE ALSO πŸ”₯

Okay this list is long long. Like, this function knows everybody. But every single one of them deserves their moment, so here we go, no skipping, no cap 🫢

First, the source file itself:

  • Kernel file ./drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Now the whole extended friend group:

See? Everybody. Literally everybody showed up to the function's party 🎊


ngl if you're poking at coalescing counts in a Xilinx AXI Ethernet driver, you already know what you're doing β€” this page is just here to hype you up while you do it πŸ’œ

and that's the wrap, bestie 🧚 this little page came from ./drivers/net/ethernet/xilinx, dated October 2026, and it'll be right here whenever you need it again. mwah πŸ’‹

πŸ“¦ where this page comes from