nfp_eth_set_configured(9)
π nfp_eth_set_configured(9) β the Kernel API Manual glow-up π¦
okay so bestie, this is nfp_eth_set_configured from the Kernel API Manual and honestly it's giving "small function, big job" energy. it flips one (1) control bit and the whole PHY either shows up to the party or leaves the group chat. iconic.
β¨ NAME β¨
nfp_eth_set_configured β sets that PHY module configured control bit, periodt π
πΈ SYNOPSIS πΈ
int nfp_eth_set_configured (struct nfp_cpp *cpp , unsigned int idx ,
bool configed );
like literally that's the whole vibe. three args, one int back π
π«Ά ARGUMENTS π«Ά
cppβ your NFP CPP handle. the main character of the parameter list ngl π¦idxβ the NFP chip-wide port index. chip-wide, bestie, not per-something-else, don't come for me πconfigedβ the desired state, i.e. what you actually want it to be β
π DESCRIPTION π
so what does it do? it sets the ifup/ifdown state on the PHY. that's it. that's the whole description. lowkey elegant, highkey important π₯
up = plugged in and thriving. down = not. the bit does the talking π
π₯ RETURN π₯
here's the vibe check on the return values:
0β configuration successful, slay π1β no changes were needed, it was already that, so nothing happened (still valid, still ate) π-ERRNOβ configuration failed π and the errno tells you why
fr fr, do not ignore that negative return. -ERRNO means it did not work. that's not a vibe, that's a bug you gotta go fix π¨
π SEE ALSO π
- the kernel file
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.cβ go read the source, iykyk π nfp_eth_read_ports(9)nfp_eth_config_commit_end(9)nfp_eth_set_mod_enable(9)__nfp_eth_set_aneg(9)__nfp_eth_set_fec(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)
the whole friend group, all linked, all valid πβ¨
and that's the page!! π source is ./drivers/net/ethernet/netrono... (yes it's cut off in the original, i'm not gonna invent the rest, that's a no from me π
ββοΈ) and the date on this baddie is October 2026. go set your bits, bestie, and remember: 0 good, 1 fine, -ERRNO bad ππ¦π
π¦ 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