bnx2x_del_all_macs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bnx2x_del_all_macs(9) πŸ’…

okay so bestie, welcome to the bnx2x_del_all_macs page β€” it lives in the Kernel API Manual section 9, and honestly? it's giving "cleanup queen". she deletes stuff. that's her whole thing. 🧹✨


🌸 NAME 🌸

bnx2x_del_all_macs β€” delete all the MACs configured for the specific MAC object. yeah. all of them. no survivors. πŸ’€


✨ SYNOPSIS ✨

int bnx2x_del_all_macs (struct bnx2x *bp , struct bnx2x_vlan_mac_obj
*mac_obj , int mac_type , bool wait_for_comp );

like, look at her. four arguments, one very clear mission. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bp β€” the driver handle. your main character pointer. 🫢
  • mac_obj β€” the MAC object handle. this is the thing she's operating on, iykyk. πŸ’…
  • mac_type β€” the type of the MACs to clear, and it's one of the BNX2X_XXX_MAC values. pick your fighter. ⭐
  • wait_for_comp β€” if it's 'true', she blocks until completion. so like, she waits. patiently. dramatically. 😭

πŸ”₯ DESCRIPTION πŸ”₯

Deletes all MACs of the specific type β€” think ETH, UC list, all that good stuff. the way she just clears the whole list is honestly iconic. 🌈

Now, the returns, because this part matters bestie, don't skip it:

  • zero β€” the operation has successfully completed. slay. βœ…
  • a positive value β€” the operation has been successfully scheduled (so, queued up, not done yet β€” still valid, still ate). πŸ‘‘
  • a negative value β€” a requested operation has failed. πŸ’€ not her best moment.

πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x.h β€” go read it, it's literally right there. πŸ“–
  • bnx2x_set_mac_one(9) β€” the sibling page. the add to her delete. the counterpart. ✨

lowkey a reminder that this is kernel API stuff, so the return-value distinctions above are the whole point β€” completed, scheduled, or failed. don't conflate them, bestie. 🫢

okay that's the whole page!! mwah πŸ’– this came from the source ./drivers/net/ethernet/broadco... and the date on it is October 2026, and yep, the page is bnx2x_del_all_macs(9) β€” go forth and delete your MACs responsibly πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from