Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkPkg/SnpDxe: Shutdown SnpDxe on BeforeExitBootServices Event. #6010

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 19, 2024

  1. NetworkPkg/SnpDxe: Shutdown SnpDxe on BeforeExitBootServices Event.

    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 <[email protected]>
    JoeLopez333 authored and apop5 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    228d79e View commit details
    Browse the repository at this point in the history