nfp_eth_set_pauseparam(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfp_eth_set_pauseparam(9) πŸ’…

okay so bestie, buckle up β€” this one's from the Kernel API Manual and it's genuinely iconic in a nerdy way. we're flipping the TX/RX pause switches on an NFP ethernet port. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

nfp_eth_set_pauseparam β€” Set TX/RX pause switch.

like literally that's it, that's the job. two little switches, one call, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int nfp_eth_set_pauseparam (struct nfp_cpp *cpp , unsigned int idx ,
       unsigned int tx_pause , unsigned int rx_pause );

four args, one int coming back at you. main character energy tbh ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • cpp β€” the NFP CPP handle. your lil passport to the chip, y'know? iykyk πŸͺͺ
  • idx β€” the NFP chip-wide port index. which port are we talking to, bestie? πŸ‘€
  • tx_pause β€” the TX pause switch. transmit side, slay πŸ’œ
  • rx_pause β€” the RX pause switch. receive side, also slay πŸ’œ

🌸 RETURN 🌸

  • 0 β€” configuration successful πŸŽ‰ ate and left no crumbs
  • 1 β€” no changes were needed 😌 the switches were already switching, we love an efficient queen
  • -ERRNO β€” configuration failed 😭 something went off, check the errno for the deets
fr fr, 1 is not an error, it's just "bestie we were already there". don't panic πŸ’€

🌈 SEE ALSO 🌈

the source lives in the kernel file ./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c β€” go read it if ur feeling brave πŸ“–

and here's the whole friend group, all of them:

go stan them all πŸ’–


and that's the page bestie 🧚✨ sourced from ./drivers/net/ethernet/netrono... and dated October 2026 β€” periodt, bookmark it, mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from