Content-Type: multipart/mixed; boundary="===============3981301499775141119==" MIME-Version: 1.0 From: Wenhua Liu Subject: [SPDK] SPDK NVMe/TCP target always fail to send C2H_TERM_REQ request Date: Mon, 08 Nov 2021 01:03:08 +0000 Message-ID: <47AF9E8A-006F-461F-9518-CC359EAD4433@vmware.com> List-ID: To: spdk@lists.01.org --===============3981301499775141119== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I=E2=80=99m testing our NVMe/TCP initiator for handling C2H_TERM_REQ (PDU t= ype 0x3). In order to test it, I intentionally injected an error to a H2CDa= ta PDU by modifying its data offset field DATAO to an invalid value. This e= rror, if detected by the target, will be treated as a fatal transport error= with fatal error status FES set to 4 (Data Transfer Out of Range). When I tested this, I can see SPDK NVMe/TCP target can detect this error an= d set the FES to value 4 as expected, but when sending C2H_TERM_REQ PDU, it= always fails with a message =E2=80=9CIC_RESP or TERM_REQ could not write t= o socket.=E2=80=9D, then on host side, the initiator gets the error =E2=80= =9CConnection reset by peer=E2=80=9D when receiving data. [2021-11-08 00:47:06.795739] tcp.c:1437:nvmf_tcp_h2c_data_hdr_handle: *ERRO= R*: Queue 3, fes 4, offset 0 [2021-11-08 00:47:06.795879] tcp.c: 837:_tcp_write_pdu: *ERROR*: IC_RESP or= TERM_REQ could not write to socket. What could be the problem here? Thanks, -Wenhua --===============3981301499775141119==--