Re: [PATCH v2 1/1] nvme-tcp: fix wrong status on deferred digest error

From: Sagi Grimberg

Date: Sun Aug 30 2026 - 17:43:34 EST




On 27/08/2026 4:05, Xixin Liu wrote:
A C2HData digest error stores a host status code in req->status. Without
DATA_SUCCESS completion goes through the rsp path, which passed that host
value straight into complete as CQE Status wire encoding.

On the rsp path, shift left when a deferred host error is stored,
otherwise use cqe->status.

Why not just assign with a shifted status?
We already do this in nvme_tcp_end_request()