commit | 1d3ef9c3a39e04be31155c27ebf80342350c3abf | [log] [tgz] |
---|---|---|
author | Varun Prakash <varun@chelsio.com> | Tue Nov 23 16:28:56 2021 +0530 |
committer | Christoph Hellwig <hch@lst.de> | Tue Nov 23 17:22:40 2021 +0100 |
tree | 532b6630eeb76060ba1a468ac18b883f5f485bd5 | |
parent | 102110efdff6beedece6ab9b51664c32ac01e2db [diff] |
nvme-tcp: validate R2T PDU in nvme_tcp_handle_r2t() If maxh2cdata < r2t_length then driver will form multiple H2CData PDUs, validate R2T PDU in nvme_tcp_handle_r2t() to reuse nvme_tcp_setup_h2c_data_pdu(). Also set req->state to NVME_TCP_SEND_H2C_PDU in nvme_tcp_setup_h2c_data_pdu(). Signed-off-by: Varun Prakash <varun@chelsio.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>