bnx2x_move_fp(9)
π bnx2x_move_fp β the Kernel API Manual tea π«
okay so bestie, welcome to the bnx2x_move_fp(9) page, section 9 of the kernel API manual, and no cap this one is short but she is important. it's literally about moving your fastpath struct around without breaking the NAPI, and honestly? iconic behavior. β¨
πΈ NAME πΈ
bnx2x_move_fp β move the content of the fastpath structure. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
void bnx2x_move_fp (struct bnx2x *bp , int from , int to );
like, look at her. three args, returns nothing, gets straight to business. main character energy fr. π
π ARGUMENTS π
bpβ the driver handle. your whole bnx2x world lives in here, bestie. πfromβ source FP index. where the fastpath is currently at. πͺtoβ destination FP index. where it's going. onward and upward. π«
β¨ DESCRIPTION β¨
so what's actually happening here? the function makes sure that the contents of bp->fp[to].napi is kept intact. that's the whole assignment. the NAPI struct gets to survive the move, and honestly, good for her. π
the way it pulls this off is a two-step slay:
- first it copies the napi struct from the target to the source β yes, backwards of what you'd expect, but that's literally what the page says, iykyk. π
- then it does a
memcpyof the entire source onto the target. boom. relocated. π¦
and after that? it updates the txdata pointers and related content, because pointers don't just automatically know where they live now. rude of them tbh. π
ngl this is the kind of function where you really want to read it twice β the copy direction is not a typo, and the memcpy is doing the heavy lifting. π₯
π§ SEE ALSO π§
the kernel file this lives in:
./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
and the whole friend group, in this exact order:
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)bnx2x_setup_tc(9)
literally the entire bnx2x group chat. go read them too, they're all slaying in their own way. π
and that's the page!! π this one's brought to you by ./drivers/net/ethernet/broadco... (yes she's truncated, she's mysterious like that π), dated October 2026, and the manual is bnx2x_move_fp(9) β catch you in the next manpage, bestie, mwah ππΈ
π¦ 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