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

Maurizio Lombardi mlombard at redhat.com
Wed Mar 19 09:24:48 PDT 2025


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(+)

-- 
2.43.5




More information about the Linux-nvme mailing list