From 87ce4210f52c0a9cf3f97937ec03c7155398e190 Mon Sep 17 00:00:00 2001 From: Ye Ting Date: Fri, 25 Sep 2015 03:51:46 +0000 Subject: NetworkPkg:Fix iSCSI driver issue to work with iSCSI LIO target The patch fixes iSCSI driver can't reinstate itself when configured in AutoConfigure mode and IPv6 stack is actually used. The issue occurs when iSCSI driver communicates with iSCSI LIO target in IPv6 path and the target sends back TCP FIN packets randomly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ye Ting Reviewed-by: Fu siyuan Reviewed-by: Wu jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18546 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/IScsiDxe/IScsiMisc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'NetworkPkg/IScsiDxe/IScsiMisc.c') diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c index f5c54e7018..e7198d5ab0 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.c +++ b/NetworkPkg/IScsiDxe/IScsiMisc.c @@ -1054,7 +1054,7 @@ IScsiGetConfigData ( // Check the autoconfig path to see whether it should be retried. // if (AttemptTmp->SessionConfigData.IpMode == IP_MODE_AUTOCONFIG && - AttemptTmp->AutoConfigureMode != IP_MODE_AUTOCONFIG_SUCCESS) { + !AttemptTmp->AutoConfigureSuccess) { if (mPrivate->Ipv6Flag && AttemptTmp->AutoConfigureMode == IP_MODE_AUTOCONFIG_IP6) { // @@ -1197,6 +1197,7 @@ IScsiGetConfigData ( AttemptConfigData->AutoConfigureMode = (UINT8) (mPrivate->Ipv6Flag ? IP_MODE_AUTOCONFIG_IP6 : IP_MODE_AUTOCONFIG_IP4); + AttemptConfigData->AutoConfigureSuccess = FALSE; } // -- cgit v1.2.3