Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 302cc88ab36ffb96622987a55f4abc22a4751fed
      
https://github.com/tianocore/edk2/commit/302cc88ab36ffb96622987a55f4abc22a4751fed
  Author: eeshanl <[email protected]>
  Date:   2025-10-29 (Wed, 29 Oct 2025)

  Changed paths:
    M NetworkPkg/SnpDxe/Get_status.c
    M NetworkPkg/SnpDxe/Initialize.c
    M NetworkPkg/SnpDxe/Mcast_ip_to_mac.c
    M NetworkPkg/SnpDxe/Nvdata.c
    M NetworkPkg/SnpDxe/Receive.c
    M NetworkPkg/SnpDxe/Receive_filters.c
    M NetworkPkg/SnpDxe/Reset.c
    M NetworkPkg/SnpDxe/Shutdown.c
    M NetworkPkg/SnpDxe/Snp.c
    M NetworkPkg/SnpDxe/Snp.h
    M NetworkPkg/SnpDxe/Start.c
    M NetworkPkg/SnpDxe/Station_address.c
    M NetworkPkg/SnpDxe/Statistics.c
    M NetworkPkg/SnpDxe/Stop.c
    M NetworkPkg/SnpDxe/Transmit.c
    M NetworkPkg/SnpDxe/WaitForPacket.c

  Log Message:
  -----------
  NetworkPkg/SnpDxe: Update SnpDxe SNP_DRIVER struct out of DMA-able memory.

CPB, DB, and CDB structs to use DMA-able memory.

Updates the overall SNP_DRIVER allocation to use AllocatePool() instead of 
PciIo->AllocateBuffer(). This moves this struct out of DMA-able memory.
Allocates the PXE_CDB struct as a pointer instead, using 
PciIo->AllocateBuffer() for DMA-able memory.

End result:
CPB, DB, and CDB are allocated with individual PciIo->AllocateBuffer() calls 
with a size of 4096 for CPB and DB. and sizeof(PXE_CDB) for CDB.
Each of these members point to locations within the Allocated Buffer, and all 
of these pointers are at-least
8-Byte aligned.
SNP_DRIVER is allocated with AllocatePool()
In the SNP_DRIVER structure, the PXE_CDB member is changed to a pointer so we 
can allocate it with PciIo->AllocateBuffer()

Signed-off-by: Eeshan Londhe <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to