<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/NetworkPkg/SnpDxe, branch dependabot/github_actions/actions/setup-python-7</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-06-30T17:27:16+00:00</updated>
<entry>
<title>NetworkPkg/SnpDxe: Fix MAC address passthrough support</title>
<updated>2026-06-30T17:27:16+00:00</updated>
<author>
<name>Jared Pan</name>
<email>jared.pan@dell.com</email>
</author>
<published>2026-06-24T01:21:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9a65be14eb21910a21e0a11e0014c1b20a8ee6ef'/>
<id>urn:sha1:9a65be14eb21910a21e0a11e0014c1b20a8ee6ef</id>
<content type='text'>
During SnpUndi32Initialize(), CurrentAddress is unconditionally
overwritten with PermanentAddress before UNDI initialization. This
causes MAC address passthrough (MacPassthru) to fail, as the NIC's
actual current address, which may differ from its permanent address,
is lost.

After UNDI initialization completes, call PxeGetStnAddr() to read
the NIC's station address via the UNDI interface and update
CurrentAddress, PermanentAddress, and BroadcastAddress in the mode
structure with the values reported by the hardware.

The call is added to both initialization paths: the cable-detect
success path and the fallback no-cable-detect path.

Signed-off-by: Jared Pan &lt;jared.pan@dell.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Remove redundant Status initializations</title>
<updated>2026-06-04T15:32:31+00:00</updated>
<author>
<name>abuthahirm</name>
<email>abuthahirm@ami.com</email>
</author>
<published>2026-03-27T07:57:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ece24799e5ec5de7a67acbc3c6e36905a93ecd3c'/>
<id>urn:sha1:ece24799e5ec5de7a67acbc3c6e36905a93ecd3c</id>
<content type='text'>
Remove redundant Status = EFI_SUCCESS and Status = EFI_DEVICE_ERROR
initializations that are immediately overwritten before being read,
across multiple modules: Dhcp6Dxe, DnsDxe, HttpBootDxe, HttpDxe,
Ip4Dxe, Ip6Dxe, MnpDxe, Mtftp4Dxe, Mtftp6Dxe, SnpDxe, TcpDxe,
TlsAuthConfigDxe, UefiPxeBcDxe and WifiConnectionManagerDxe.

Cc: Saloni Kasbekar &lt;saloni.kasbekar@intel.com&gt;
Cc: Zachary Clark-williams &lt;zachary.clark-williams@intel.com&gt;

Signed-off-by: abuthahirm &lt;abuthahirm@ami.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T19:03:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=58de02af29a72b58ddc68893ecaf0927682e4164'/>
<id>urn:sha1:58de02af29a72b58ddc68893ecaf0927682e4164</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/SnpDxe: Fix Snp used uninitialized</title>
<updated>2025-10-31T19:35:42+00:00</updated>
<author>
<name>eeshanl</name>
<email>eeshanlondhe@microsoft.com</email>
</author>
<published>2025-10-31T17:27:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9b71501f6c190a3767f50fdfff24bbe7f213a65f'/>
<id>urn:sha1:9b71501f6c190a3767f50fdfff24bbe7f213a65f</id>
<content type='text'>
Ensures the Snp Structure is initialized as NULL.

Signed-off-by: Eeshan Londhe &lt;eeshanlondhe@microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/SnpDxe: Update SnpDxe SNP_DRIVER struct out of DMA-able memory.</title>
<updated>2025-10-29T18:32:42+00:00</updated>
<author>
<name>eeshanl</name>
<email>eeshanlondhe@microsoft.com</email>
</author>
<published>2025-05-28T23:06:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=302cc88ab36ffb96622987a55f4abc22a4751fed'/>
<id>urn:sha1:302cc88ab36ffb96622987a55f4abc22a4751fed</id>
<content type='text'>
CPB, DB, and CDB structs to use DMA-able memory.

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

End result:
CPB, DB, and CDB are allocated with individual PciIo-&gt;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-&gt;AllocateBuffer()

Signed-off-by: Eeshan Londhe &lt;eeshanlondhe@microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/SnpDxe: Shutdown SnpDxe on BeforeExitBootServices Event.</title>
<updated>2025-01-17T01:43:51+00:00</updated>
<author>
<name>joe</name>
<email>37425738+JoeLopez333@users.noreply.github.com</email>
</author>
<published>2023-08-14T22:27:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=89d413731dc99a509d4dc6e942e519ebdb0c3487'/>
<id>urn:sha1:89d413731dc99a509d4dc6e942e519ebdb0c3487</id>
<content type='text'>
SnpDxe registers for an ExitBootServices callback and runs the
PXE_OPCODE_SHUTDOWN and PXE_OPCODE_STOP commands for any network
controllers that the driver is attached to.

Register the SnpDxe callback for gEfiEventBeforeExitBootServicesGuid
instead of gEfiEventExitBootServicesGuid to ensure the correct ordering:

1. ExitBootServices event
2. Network card shutdown sequence is completed

Also, close the event to prevent rerunning the shutdown if multiple
ExitBootServices events need to be called by the OS.

Signed-off-by: Aaron Pop &lt;aaronpop@microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Restore TPL Before Return</title>
<updated>2024-11-22T19:45:03+00:00</updated>
<author>
<name>Oliver Smith-Denny</name>
<email>osde@microsoft.com</email>
</author>
<published>2024-10-08T17:12:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0d129450c2c436e047f8ee929db63224e643cc30'/>
<id>urn:sha1:0d129450c2c436e047f8ee929db63224e643cc30</id>
<content type='text'>
This patch fixes a few instances of error cases in NetworkPkg
returning after a RaiseTPL call without restoring the TPL
first.

Signed-off-by: Oliver Smith-Denny &lt;osde@linux.microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/SnpDxe: return error for unsupported parameter</title>
<updated>2024-09-02T22:17:12+00:00</updated>
<author>
<name>Nickle Wang</name>
<email>nicklew@nvidia.com</email>
</author>
<published>2024-07-11T07:41:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=814470b8340725095ad4db48b291b4e2b4e86941'/>
<id>urn:sha1:814470b8340725095ad4db48b291b4e2b4e86941</id>
<content type='text'>
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4729

From SCT testing report, Reset() does not support the case when
ExtendedVerification is set to FALSE. So, we should return
EFI_INVALID_PARAMETER in this case. For details, please refer to
Bug 4729.

Signed-off-by: Nickle Wang &lt;nicklew@nvidia.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:54:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d1050b9dff1cace252aff86630bfdb59dff5f507'/>
<id>urn:sha1:d1050b9dff1cace252aff86630bfdb59dff5f507</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the NetworkPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Change OPTIONAL keyword usage style</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2021-12-03T02:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8874fa199dd7be550f20e3fc78861022eb826728'/>
<id>urn:sha1:8874fa199dd7be550f20e3fc78861022eb826728</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760

Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
</content>
</entry>
</feed>
