From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from IMSVA.IN.MEGATRENDS.COM (venus.amiindia.co.in [111.93.197.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D7C1C82166 for ; Fri, 24 Feb 2017 05:58:47 -0800 (PST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36F1082058 for ; Fri, 24 Feb 2017 19:30:11 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2133E8204A for ; Fri, 24 Feb 2017 19:30:11 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS for ; Fri, 24 Feb 2017 19:30:11 +0530 (IST) Received: from VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5]) by Venus2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b%14]) with mapi id 14.03.0248.002; Fri, 24 Feb 2017 19:28:43 +0530 From: Santhapur Naveen To: "edk2-devel@lists.01.org" Thread-Topic: ISCSI says "Session Doesn't Exist" Thread-Index: AdKOo1PNr5oKc1KtQkGfr5/iCtjCdw== Date: Fri, 24 Feb 2017 13:58:42 +0000 Message-ID: <625A2455CC232F40B0F38F05ACED6D978C4E1F3B@VENUS1.in.megatrends.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.93.16] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-22904.007 X-TM-AS-Result: No--5.685-5.0-31-10 X-imss-scan-details: No--5.685-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-22904.007 X-TMASE-Result: 10--5.684800-10.000000 X-TMASE-MatchedRID: Xi4+fn8EonLXnBrAx1hOxVz+axQLnAVBJD5ItWH4fSJzeKCaw73Zgf4n 6rGGB5YphA+dbcI9S+td46nVhe2haBNmUW1dq3NxdARARTk4h58rHkgIan9a0WHaXGR9wawUAUl WTydCOgMBqTv1J2BCwHVy3WOjbvmOXtne4opDTiCZroPNdqiG8yEF1RdqrHVdZ5yuplze9ptpxm gQfRgShJ4wl819njyx54mbosKUuYc0RLN0QcxzulgowyUWHgGd3keXXBe59XkML9Wb3Qh/hVTNq f3EQ8oxw8tCK8xN/zmIiVrK37eGHDvga6N8HZuCthSuSdSoQvu//vF0tCNdIrarIXnXbgYHQzl1 RRy9eu0nlz+21M/WjIAy6p60ZV62HRcIXG0b6KisWV0bdkf4OXUa2YtNwSP3tQRlrrRyy4zFYr7 R7L9nQ3aO+02KlxfhCkw3Nsp3RUBn7tjkH2ws42gQHgyEmHaKYBt60jaokNv0tEsemQpn04j+Ud HfpbHKwL6SxPpr1/I= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-0 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: ISCSI says "Session Doesn't Exist" X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2017 13:58:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, I've a question about IScsi and any suggestions would be helpful [Issue Summary] If I add an ISCSI attempt and on the next reboot, a connection will be esta= blished in between the initiator and the target. Till now, it is fine. Now = if I do an immediate reset with in 20 seconds, on the next boot, the initia= tor is trying to establish a session, but the target rejects saying "Sessio= n does not exist". If I reset after 20 seconds or so, the connection would = have been established with the same login details. To dive deeper, I've checked the RFC documentation on this and found the fo= llowing information. But when I checked the wireshark capture, I found my T= SIH is ZERO even for the immediate session. If I want to make my immediate = session also into a successful one, what should I be doing? I'm aware that = there's a function available IScsiSessionAbort(). Would it help me or provi= de your suggestions to get me going. +------------------------------------------------------------------+ |ISID | TSIH | CID | Target action | +------------------------------------------------------------------+ |new | non-zero | any | fail the login | | | | | ("session does not exist") | +------------------------------------------------------------------+ |new | zero | any | instantiate a new session | +------------------------------------------------------------------+ |existing | zero | any | do session reinstatement | | | | | (see section 5.3.5) | +------------------------------------------------------------------+ |existing | non-zero | new | add a new connection to | | | existing | | the session | +------------------------------------------------------------------+ |existing | non-zero |existing| do connection reinstatement| | | existing | | (see section 5.3.4) | +------------------------------------------------------------------+ |existing | non-zero | any | fail the login | | | new | | ("session does not exist") | +------------------------------------------------------------------+ Thanks, Naveen