Skip to content

Commit

Permalink
ArpDriver: refetch Snp Mode data after running MnpConfigure
Browse files Browse the repository at this point in the history
ArpDriver: refetch Snp Mode data after running MnpConfigure.

MnpConfigure runs Snp->Start()/Snp->Initialize(). This change ensures that ArpDriver is operating with updated copy of SnpMode state in the event that it changes as a result of those calls.
  • Loading branch information
joschock authored and kenlautner committed May 4, 2023
1 parent 2b8fbf2 commit 721703b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NetworkPkg/ArpDxe/ArpDriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ ArpCreateService (
goto ERROR_EXIT;
}

// MU_CHANGE [BEGIN] - Refetch Mode Data in the event that Mnp->Configure caused changes in SnpMode.
Status = ArpService->Mnp->GetModeData (ArpService->Mnp, NULL, &ArpService->SnpMode);
if ((Status != EFI_NOT_STARTED) && EFI_ERROR (Status)) {
goto ERROR_EXIT;
}

// MU_CHANGE [END] - Refetch Mode Data in the event that Mnp->Configure caused changes in SnpMode.

//
// Create the event used in the RxToken.
//
Expand Down

0 comments on commit 721703b

Please sign in to comment.