bnx2x_setup_tc(9)
π bnx2x_setup_tc(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're literally in kernel land today and honestly? it's giving iconic. this one's a lil function from the bnx2x driver, and she's a whole vibe. let's get into it β¨
π NAME π
bnx2x_setup_tc β the routine that configures a net_device for multi tc (multi traffic class, iykyk) π¦
β¨ SYNOPSIS β¨
int bnx2x_setup_tc (struct net_device *dev , u8 num_tc );
like, that's the whole signature. she's short, she's sweet, she returns an int. periodt π
πΈ ARGUMENTS πΈ
devβ the net device you're configuring, bestie. this is the one getting the glow-up π«Άnum_tcβ the number of traffic classes to enable. yep, that's it, that's the number. no cap π₯
π DESCRIPTION π
so basically bnx2x_setup_tc is the callback that's connected to the ndo_setup_tc function pointer. that's the whole description and honestly she ate π β short, punchy, main character energy. that's the entire lore, no extra side quests.
π SEE ALSO π
the kernel file she lives in, bestie β go read the source, it's literally right there:
Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
and her whole friend group (aka the related functions, all of them, not skipping a single one π«Ά):
bnx2x_move_fp(9)bnx2x_fill_fw_str(9)bnx2x_shrink_eth_fp(9)bnx2x_set_gro_params(9)bnx2x_fill_report_data(9)bnx2x_link_report(9)__bnx2x_link_report(9)bnx2x_free_msix_irqs(9)bnx2x_set_real_num_queues(9)bnx2x_bz_fp(9)bnx2x_set_pbd_gso(9)bnx2x_set_pbd_csum_enc(9)bnx2x_set_pbd_csum_e2(9)bnx2x_set_pbd_csum(9)
π‘ friendly reminder: that's the whole list, every single one, don't come for me if you were hoping for fewer β¨
mwah π that's the page! this lil beauty comes from the kernel source at ./drivers/net/ethernet/broadco... (yeah the path got cut off in the footer, tragic, but that's what we've got π) and she's dated October 2026. version? it's the Kernel API Manual, obviously. go forth and configure your net devices, bestie β slay ππ¦π
π¦ 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