nfp_eth_set_fec(9)
π 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 asenum 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:
nfp_eth_read_ports(9)nfp_eth_config_commit_end(9)nfp_eth_set_mod_enable(9)nfp_eth_set_configured(9)__nfp_eth_set_aneg(9)__nfp_eth_set_fec(9)__nfp_eth_set_txpause(9)__nfp_eth_set_rxpause(9)nfp_eth_set_pauseparam(9)__nfp_eth_set_speed(9)__nfp_eth_set_split(9)
(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-ERRNOmeans it did not slay, and1means 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
- 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