Re: [edk2] [Patch 1/2] NetworkPkg/IScsiDxe: Fix the ISCSI connection failure in certain case.

2018-03-12 Thread Fu, Siyuan
Reviewed-by: Fu Siyuan 


> -Original Message-
> From: Wu, Jiaxin
> Sent: Monday, March 12, 2018 4:31 PM
> To: edk2-devel@lists.01.org
> Cc: Fu, Siyuan ; Ye, Ting 
> Subject: [Patch 1/2] NetworkPkg/IScsiDxe: Fix the ISCSI connection failure
> in certain case.
> 
> The ISCSI connection will fail for the first time if the target info is
> retrieved from DHCP and expressed as URI format. The issue is caused by
> the missing DNS protocol dependency check during the driver support
> function.
> 
> This patch is to fix the above issue.
> 
> Cc: Fu Siyuan 
> Cc: Ye Ting 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Jiaxin Wu 
> ---
>  NetworkPkg/IScsiDxe/IScsiMisc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c
> b/NetworkPkg/IScsiDxe/IScsiMisc.c
> index 94f3725866..745b7ac07b 100644
> --- a/NetworkPkg/IScsiDxe/IScsiMisc.c
> +++ b/NetworkPkg/IScsiDxe/IScsiMisc.c
> @@ -1982,11 +1982,11 @@ IScsiDnsIsConfigured (
>  if (AttemptTmp->SessionConfigData.Enabled == ISCSI_DISABLED || StrCmp
> (MacString, AttemptMacString)) {
>FreePool (AttemptTmp);
>continue;
>  }
> 
> -if (AttemptTmp->SessionConfigData.DnsMode) {
> +if (AttemptTmp->SessionConfigData.DnsMode || AttemptTmp-
> >SessionConfigData.TargetInfoFromDhcp) {
>FreePool (AttemptTmp);
>FreePool (AttemptConfigOrder);
>return TRUE;
>  } else {
>FreePool (AttemptTmp);
> --
> 2.16.2.windows.1

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


[edk2] [Patch 1/2] NetworkPkg/IScsiDxe: Fix the ISCSI connection failure in certain case.

2018-03-12 Thread Jiaxin Wu
The ISCSI connection will fail for the first time if the target info is
retrieved from DHCP and expressed as URI format. The issue is caused by
the missing DNS protocol dependency check during the driver support
function.

This patch is to fix the above issue.

Cc: Fu Siyuan 
Cc: Ye Ting 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu 
---
 NetworkPkg/IScsiDxe/IScsiMisc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c
index 94f3725866..745b7ac07b 100644
--- a/NetworkPkg/IScsiDxe/IScsiMisc.c
+++ b/NetworkPkg/IScsiDxe/IScsiMisc.c
@@ -1982,11 +1982,11 @@ IScsiDnsIsConfigured (
 if (AttemptTmp->SessionConfigData.Enabled == ISCSI_DISABLED || StrCmp 
(MacString, AttemptMacString)) {
   FreePool (AttemptTmp);
   continue;
 }
 
-if (AttemptTmp->SessionConfigData.DnsMode) {
+if (AttemptTmp->SessionConfigData.DnsMode || 
AttemptTmp->SessionConfigData.TargetInfoFromDhcp) {
   FreePool (AttemptTmp);
   FreePool (AttemptConfigOrder);
   return TRUE;
 } else {
   FreePool (AttemptTmp);
-- 
2.16.2.windows.1

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel