]> www.infradead.org Git - nvme.git/commit
nvme-tcp: add basic support for the C2HTermReq PDU
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 17 Feb 2025 16:08:27 +0000 (17:08 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 18 Feb 2025 15:13:26 +0000 (07:13 -0800)
commit84e009042d0f3dfe91bec60bcd208ee3f866cbcd
treef0e5291ed388e4ea4242044b215d4cb28256a24d
parentfcd875445866a5219cf2be3101e276b21fc843f3
nvme-tcp: add basic support for the C2HTermReq PDU

Previously, the NVMe/TCP host driver did not handle the C2HTermReq PDU,
instead printing "unsupported pdu type (3)" when received. This patch adds
support for processing the C2HTermReq PDU, allowing the driver
to print the Fatal Error Status field.

Example of output:
nvme nvme4: Received C2HTermReq (FES = Invalid PDU Header Field)

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c
include/linux/nvme-tcp.h