efx_mae_allocate_pedit_mac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ efx_mae_allocate_pedit_mac β€” the Kernel API Manual era πŸ’…

okay so bestie, welcome to the efx_mae_allocate_pedit_mac(9) page, straight out of the Kernel API Manual ✨ no cap, this one's a little cutie with a big job.


πŸ’– NAME πŸ’–

efx_mae_allocate_pedit_mac β€” allocate a pedit MAC address in HW, periodt.


🌸 SYNOPSIS 🌸

int efx_mae_allocate_pedit_mac (struct efx_nic *efx , struct
       efx_tc_mac_pedit_action *ped );

like literally that's the whole signature, copy it exactly bestie 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • efx β€” the NIC we're installing a pedit MAC address on. yes ma'am, this is the main character hardware 🌈
  • ped β€” the pedit MAC action that's getting installed. she's the one being placed πŸ’…

✨ DESCRIPTION ✨

so what this does is: it attempts to install ped in HW πŸ”₯ and tbh if that works out, it populates its id with an index of this entry in the firmware MAC address table. on success. only on success. iykyk 😭

like the way that it's giving "put the thing in the hardware and then tell you where it landed" β€” that's the whole vibe fr fr πŸ‘‘


⭐ RETURN ⭐

  • a negative value on error πŸ’€
  • 0 in success πŸŽ‰ slay

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/net/ethernet/sfc/mae.c πŸ“
  • efx_mae_free_pedit_mac(9) β€” the bestie that undoes this one πŸ¦‹

and that's the page, bestie!! this little icon came from the ./drivers/net/ethernet/sfc directory, living in the Kernel API Manual, dated October 2026 🌸 mwah, go install some MAC addresses responsibly πŸ’œ

πŸ“¦ where this page comes from