__nfp_eth_set_speed(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… 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 from nfp_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 ๐ŸŒˆ

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