__nfp_eth_set_fec(9)
π
__nfp_eth_set_fec(9) β like, the Kernel API Manual page, bestie
okay so this is a page from the Kernel API Manual, section 9, and the star of the show is __nfp_eth_set_fec. say it with me: set PHY forward error correction control bit. iconic. let's get into it π
β¨ NAME β¨
__nfp_eth_set_fec β set PHY forward error correction control bit π¦
πΈ SYNOPSIS πΈ
int __nfp_eth_set_fec (struct nfp_nsp *nsp , enum nfp_eth_fec mode );
like, it takes two things and gives you back an int. that's the whole vibe check.
π«Ά ARGUMENTS π«Ά
nspβ the NFP NSP handle, which you get back fromnfp_eth_config_start. yes bb, that's where it comes from, don't just make one up πmodeβ the fec mode you desire. your dream fec mode. go off β¨
π DESCRIPTION π
so what it actually does: it sets the PHY module forward error correction mode. literally that.
and here's the part where you go π β it will write to hwinfo overrides in the flash, which is persistent config. persistent!! like it stays. so no cap, be sure before you call it, because this one's committing to the bit π«Ά
π₯ RETURN π₯
0 or -ERRNO. that's it. zero means slay, -ERRNO means something went sideways π
π SEE ALSO π
the kernel file it lives in, fr fr:
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c
and the whole friend group:
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)
ngl bestie, that flash write is persistent config β treat it with main character energy and read it twice before you commit π
and that's the page!! π§ source came from ./drivers/net/ethernet/netrono..., dated October 2026, and it goes out to __nfp_eth_set_fec(9) β 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