summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2025-02-17 19:08:27 +0300
committerKeith Busch <kbusch@kernel.org>2025-02-18 18:13:26 +0300
commit84e009042d0f3dfe91bec60bcd208ee3f866cbcd (patch)
treef0e5291ed388e4ea4242044b215d4cb28256a24d /include
parentfcd875445866a5219cf2be3101e276b21fc843f3 (diff)
downloadlinux-84e009042d0f3dfe91bec60bcd208ee3f866cbcd.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvme-tcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvme-tcp.h b/include/linux/nvme-tcp.h
index e07e8978d691..e435250fcb4d 100644
--- a/include/linux/nvme-tcp.h
+++ b/include/linux/nvme-tcp.h
@@ -13,6 +13,8 @@
#define NVME_TCP_ADMIN_CCSZ SZ_8K
#define NVME_TCP_DIGEST_LENGTH 4
#define NVME_TCP_MIN_MAXH2CDATA 4096
+#define NVME_TCP_MIN_C2HTERM_PLEN 24
+#define NVME_TCP_MAX_C2HTERM_PLEN 152
enum nvme_tcp_pfv {
NVME_TCP_PFV_1_0 = 0x0,