nfp_eth_set_fec(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– nfp_eth_set_fec(9) β€” the Kernel API Manual glow-up πŸ’–

okay so bestie, welcome to nfp_eth_set_fec from the Kernel API Manual (section 9, iykyk) β€” this is the little function that sets the PHY forward error correction control mode. that's it, that's the vibe. she's focused, she's iconic, she does one thing. πŸŽ€


✨ NAME ✨

nfp_eth_set_fec β€” set the PHY forward error correction control mode, no cap. this is literally her whole personality.


πŸ¦‹ SYNOPSIS πŸ¦‹

int nfp_eth_set_fec (struct nfp_cpp *cpp , unsigned int idx , enum
nfp_eth_fec mode );

like, she takes three things and returns an int. simple. elegant. ate. πŸ’…


🌸 ARGUMENTS 🌸

  • cpp β€” the NFP CPP handle, bestie. your ticket into the whole CPP situation. 🎟️
  • idx β€” the NFP chip-wide port index. chip-wide, okay? not per-port-something-else, don't come for me. πŸ”’
  • mode β€” the desired fec mode, typed as enum nfp_eth_fec. desired being the key word here β€” she's the dream, not necessarily the reality. ✨

πŸ’œ RETURN πŸ’œ

  • 0 β€” configuration successful, we love a win πŸŽ‰
  • 1 β€” no changes were needed, which honestly is also a win, she was already perfect πŸ’…
  • -ERRNO β€” configuration failed 😭 the negative errno is doing the talking

πŸ”₯ SEE ALSO πŸ”₯

the kernel file herself lives at ./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c β€” go read the source, it's giving main character energy πŸ“–

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

(and yes there's a __nfp_eth_set_fec(9) in there too β€” the double-underscore sibling, we stan a family reunion 🫢)


ngl bestie, nothing here is dangerous β€” just remember -ERRNO means it did not slay, and 1 means she didn't even need to try. πŸ™ˆ

🌈 mwah, that's the page! brought to you by ./drivers/net/ethernet/netrono... dated October 2026, version vibes courtesy of the nfp_eth_set_fec(9) header and that exact same nfp_eth_set_fec(9) footer energy. periodt. πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from