__nfp_eth_set_speed(9)
๐ NAME ๐
__nfp_eth_set_speed โ set interface speed/rate, bestie. like literally telling the NIC how fast to go โจ
๐ฆ SYNOPSIS ๐ฆ
int __nfp_eth_set_speed (struct nfp_nsp *nsp , unsigned int speed );
๐ ARGUMENTS ๐
nspโ the NFP NSP handle, and no you can't just make one up, it's the one you got back fromnfp_eth_config_start๐ซถspeedโ the desired speed, per lane (per lane!! don't forget the per lane part, it's giving crucial ๐)
๐ธ DESCRIPTION ๐ธ
Okay so this one sets the lane speed. periodt.
The speed value you pass in should be the subport speed divided by the number of lanes this subport is spanning โ so like 10000 for 40G, 25000 for 50G, etc. do the math bestie, it's not that deep but it is that deep ๐งฎโจ
Also important: this writes to the hwinfo overrides in the flash, which is persistent config. so yeah, it sticks around after you leave. main character energy honestly ๐
๐ฅ RETURN ๐ฅ
0 or -ERRNO. that's it, that's the whole vibe check ๐
๐ SEE ALSO ๐
- Kernel file
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.cโ go read it, iykyk ๐ฆ 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_fec(9)__nfp_eth_set_txpause(9)__nfp_eth_set_rxpause(9)nfp_eth_set_pauseparam(9)__nfp_eth_set_split(9)
the whole friend group fr fr ๐ซถ
okay that's the page!! this lil number lives in the Kernel API Manual, comes to you from ./drivers/net/ethernet/netrono... (yes it's truncated, that's just how the footer rolls ๐), dated October 2026, and it's filed under __nfp_eth_set_speed(9) โ slay, go set some speeds bestie ๐โจ๐
๐ฆ 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