efx_mae_free_pedit_mac(9)
π efx_mae_free_pedit_mac β kernel API manual, but make it cute
Okay so bestie, this is a page from the Kernel API Manual about efx_mae_free_pedit_mac(9), and honestly? It's a whole little cleanup-era moment. Let's get into it π
β¨ NAME β¨
efx_mae_free_pedit_mac β frees a pedit MAC address in HW. That's it, that's the vibe. π¦
πΈ SYNOPSIS πΈ
void efx_mae_free_pedit_mac (struct efx_nic *efx , struct
efx_tc_mac_pedit_action *ped );
Yes, it's void β no return value, no little treat at the end, it just does the thing and dips. π
π ARGUMENTS π
efxβ the NIC we're installing a pedit MAC address on. This is the main character of the whole operation, no cap. πpedβ the pedit MAC action that needs to be freed. It's giving "please release me," and we're here to help. π«Ά
π₯ DESCRIPTION π₯
So the way that this works: it frees ped in HW, then it checks that firmware did not free a different one, and then it clears the id β and id is the thing that denotes the index of the entry in the MAC address table. Lowkey important detail, don't skip it. π§
Literally that's the whole job: free it, vibe check the firmware to make sure it didn't go rogue and free something else, clear the id. Periodt. β¨
ngl, the "check that firmware did not free a different one" part is the moment this function earns its keep β bestie is paying attention. π
π¦ SEE ALSO π¦
- Kernel file:
./drivers/net/ethernet/sfc/mae.c efx_mae_allocate_pedit_mac(9)β the allocate girlie, aka the one that hands these things out in the first place π
β And that's the page! Big love to ./drivers/net/ethernet/sfc, dated October 2026, and obviously to efx_mae_free_pedit_mac(9) herself. Slay, free that MAC address, we're obsessed. πππ₯
π¦ 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