Searched refs:icresp (Results 1 – 3 of 3) sorted by relevance
838 struct nvme_tcp_icresp_pdu *icresp = &queue->pdu.icresp; in nvmet_tcp_handle_icreq() local868 memset(icresp, 0, sizeof(*icresp)); in nvmet_tcp_handle_icreq()869 icresp->hdr.type = nvme_tcp_icresp; in nvmet_tcp_handle_icreq()870 icresp->hdr.hlen = sizeof(*icresp); in nvmet_tcp_handle_icreq()871 icresp->hdr.pdo = 0; in nvmet_tcp_handle_icreq()872 icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen); in nvmet_tcp_handle_icreq()873 icresp->pfv = cpu_to_le16(NVME_TCP_PFV_1_0); in nvmet_tcp_handle_icreq()874 icresp->maxdata = cpu_to_le32(0x400000); /* 16M arbitrary limit */ in nvmet_tcp_handle_icreq()875 icresp->cpda = 0; in nvmet_tcp_handle_icreq()877 icresp->digest |= NVME_TCP_HDR_DIGEST_ENABLE; in nvmet_tcp_handle_icreq()[all …]
1281 struct nvme_tcp_icresp_pdu *icresp; in nvme_tcp_init_connection() local1291 icresp = kzalloc(sizeof(*icresp), GFP_KERNEL); in nvme_tcp_init_connection()1292 if (!icresp) { in nvme_tcp_init_connection()1316 iov.iov_base = icresp; in nvme_tcp_init_connection()1317 iov.iov_len = sizeof(*icresp); in nvme_tcp_init_connection()1324 if (icresp->hdr.type != nvme_tcp_icresp) { in nvme_tcp_init_connection()1326 nvme_tcp_queue_id(queue), icresp->hdr.type); in nvme_tcp_init_connection()1330 if (le32_to_cpu(icresp->hdr.plen) != sizeof(*icresp)) { in nvme_tcp_init_connection()1332 nvme_tcp_queue_id(queue), icresp->hdr.plen); in nvme_tcp_init_connection()1336 if (icresp->pfv != NVME_TCP_PFV_1_0) { in nvme_tcp_init_connection()[all …]
182 struct nvme_tcp_icresp_pdu icresp; member