/* Get the recorded NIC info from global structure by the Index. */
ISCSI_NIC_INFO* IScsiGetNicInfoByIndex(IN UINT8 NicIndex)
/* Get the recorded NIC info from global structure by the Index. */
ISCSI_NIC_INFO* IScsiGetNicInfoByIndex(IN UINT8 NicIndex)
{
  LIST_ENTRY      *Entry;
  ISCSI_NIC_INFO  *NicInfo;
  NET_LIST_FOR_EACH (Entry, &mPrivate->NicInfoList) {
    NicInfo = NET_LIST_USER_STRUCT (Entry, ISCSI_NIC_INFO, Link);
    if (NicInfo->NicIndex == NicIndex) {
      return NicInfo;
    }
  }
  return NULL;
}