bnx2x_move_fp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

  1. 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. πŸ™ˆ
  2. then it does a memcpy of 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:

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