[PATCH RFC 0/1] C2HTermReq support for nvmet-tcp

Hannes Reinecke hare at suse.com
Wed Mar 19 09:34:26 PDT 2025


On 3/19/25 17:24, Maurizio Lombardi wrote:
> Hello Hannes,
> 
> this patch adds support for C2HTermReq in
> nvmet-tcp as you proposed here:
> https://lore.kernel.org/linux-nvme/91041933-6a18-490c-8090-4e03d15d3cf3@suse.de/
> 
> Now, the question is how to make it possible to write a blktest script
> to test this feature.
> 
> I am thinking of adding a function to drivers/nvme/host/fault_inject.c
> that corrupts the digest in random packets to trigger a digest
> error in the target driver, so the latter will send
> a C2HTermReq PDU back to the host.
> Does that sounds like a good idea?
> 
> Maurizio Lombardi (1):
>    nvmet-tcp: add support for C2HTermReq
> 
>   drivers/nvme/target/tcp.c | 70 +++++++++++++++++++++++++++++++++++++++
>   1 file changed, 70 insertions(+)
> 
Hmm. It should be possible to have a debugfs attribute to always fail 
digest comparison, that should trigger it, no?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.com                               +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list