fm10k_setup_...tx_resources(9)
π fm10k_setup_all_tx_resources β NAME π
okay so bestie, this is a page straight out of the Kernel API Manual, and the star of the show is fm10k_setup_all_tx_resources β it's literally the function that allocates all queues' Tx resources. that's it, that's the vibe. π¦
β¨ SYNOPSIS β¨
int fm10k_setup_all_tx_resources (struct fm10k_intfc *interface );
like, it takes one thing and gives you back an int. simple queen behavior. π
πΈ ARGUMENTS πΈ
interfaceβ the board private structure. that's your whole lil fm10k world in one struct, no cap. π«Ά
π DESCRIPTION π
okay so here's the tea, and it's kind of a warning so listen up: if this function returns with an error, it's entirely possible that one or more of the rings is populated while the rest are not. π like, a half-finished situation. messy. orphaned rings just vibing there.
and because of that, it is the caller's duty to clean up those orphaned rings. not the function's problem, not the kernel's problem β yours. main character responsibility fr fr. π§
Return values, because of course:
0on success β slay, we ate. β¨- negative on failure β π it's giving error, go clean up your rings.
π SEE ALSO π
the source lives in the kernel file ./drivers/net/ethernet/intel/fm10k/fm10k_netdev.c β go read it, iykyk. π
and here's the whole friend group, all the related functions, every single one, because we don't leave anyone out:
fm10k_setup_tx_resources(9)fm10k_setup_rx_resources(9)fm10k_setup_all_rx_resources(9)fm10k_clean_tx_ring(9)fm10k_free_tx_resources(9)fm10k_clean_all_tx_rings(9)fm10k_free_all_tx_resources(9)fm10k_clean_rx_ring(9)fm10k_free_rx_resources(9)fm10k_clean_all_rx_rings(9)fm10k_free_all_rx_resources(9)fm10k_request_glort_range(9)fm10k_restore_udp_port_info(9)fm10k_udp_tunnel_sync(9)fm10k_open(9)fm10k_close(9)fm10k_tx_timeout(9)fm10k_host_mbx_ready(9)fm10k_queue_vlan_request(9)fm10k_queue_mac_request(9)fm10k_clear_macvlan_queue(9)fm10k_get_stats64(9)
ngl, the one thing to actually remember: on error, some rings may already be populated and you have to clean them. don't leave them orphaned, bestie, that's not the vibe. π
and that's the page!! π source is that kernel file path ./drivers/net/ethernet/intel/f..., it's from the Kernel API Manual, dated October 2026 β mwah, bye, go free those rings π
ππ
π¦ 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