diff options
author | Ye Ting <ting.ye@intel.com> | 2016-09-29 13:52:05 +0800 |
---|---|---|
committer | Ye Ting <ting.ye@intel.com> | 2016-10-14 10:54:26 +0800 |
commit | a2d59ef2912079fe0631f7ee7661dad2ddb472c8 (patch) | |
tree | 88ae52623a4e8a8e11afc5b308f646cdc0a3c9a7 /NetworkPkg/IScsiDxe/IScsiMisc.h | |
parent | 08354c34486947da17a36a605f9a4b000132123f (diff) | |
download | edk2-a2d59ef2912079fe0631f7ee7661dad2ddb472c8.tar.gz edk2-a2d59ef2912079fe0631f7ee7661dad2ddb472c8.tar.bz2 edk2-a2d59ef2912079fe0631f7ee7661dad2ddb472c8.zip |
NetworkPkg: Record user configured TargetIP/Port in iBFT
Current ISCSI driver records redirected iSCSI targetIP/Port in iBFT
once redirection occurs, which removes the possibility of the OS
to reconnect to the configured IP for load balancing. The behavior
is not explicitly described in IBFT spec, though the MSFT expert
confirm we should record original user setting rather than
publish the redirected IP.
Thanks Sriram for reviewing and validating this patch in his test-bed.
Cc: Subramanian Sriram <sriram-s@hpe.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Zhang Lubo <lubo.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Subramanian Sriram <sriram-s@hpe.com>
Diffstat (limited to 'NetworkPkg/IScsiDxe/IScsiMisc.h')
-rw-r--r-- | NetworkPkg/IScsiDxe/IScsiMisc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.h b/NetworkPkg/IScsiDxe/IScsiMisc.h index 1bcaeb8bcc..912a8711fa 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.h +++ b/NetworkPkg/IScsiDxe/IScsiMisc.h @@ -50,9 +50,14 @@ typedef struct _ISCSI_SESSION_CONFIG_NVDATA { UINT8 PrefixLength;
UINT8 BootLun[8];
- UINT16 ConnectTimeout; ///< timout value in milliseconds
+ UINT16 ConnectTimeout; ///< timout value in milliseconds.
UINT8 ConnectRetryCount;
UINT8 IsId[6];
+
+ BOOLEAN RedirectFlag;
+ UINT16 OriginalTargetPort; // The port of proxy/virtual target.
+ EFI_IP_ADDRESS OriginalTargetIp; // The address of proxy/virtual target.
+
} ISCSI_SESSION_CONFIG_NVDATA;
#pragma pack()
|