NetworkPkg: Fix issue in Ip6Dxe SetData

EFI_NOT_READY should not be treated as an error status
returned from SetData for Ip6ConfigDataTypeManualAddress
since there is an asynchronous operation for DAD process.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Tested-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
This commit is contained in:
Jiaxin Wu 2016-04-13 11:07:07 +08:00
parent 2b1c08acfc
commit 7959b06748
1 changed files with 38 additions and 40 deletions

View File

@ -578,7 +578,7 @@ Ip6DriverBindingStart (
DataItem->DataSize, DataItem->DataSize,
DataItem->Data.Ptr DataItem->Data.Ptr
); );
if (EFI_ERROR(Status)) { if (EFI_ERROR(Status) && Status != EFI_NOT_READY) {
goto ON_ERROR; goto ON_ERROR;
} }
} }
@ -599,7 +599,6 @@ Ip6DriverBindingStart (
} }
} }
if (!EFI_ERROR (Status)) {
// //
// ready to go: start the receiving and timer // ready to go: start the receiving and timer
// //
@ -638,7 +637,6 @@ Ip6DriverBindingStart (
mIp6Id = NET_RANDOM (NetRandomInitSeed ()); mIp6Id = NET_RANDOM (NetRandomInitSeed ());
return EFI_SUCCESS; return EFI_SUCCESS;
}
ON_ERROR: ON_ERROR:
Ip6CleanService (IpSb); Ip6CleanService (IpSb);