]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:03 +0000 (13:02 +0100)
commit0ff76a25ab0c3448ce671d4657a0e04636c8ef8b
treea460b804122ac840fa7c6381c078a3b9fb122b74
parentd7f35ebb5818fd6f28675e6babff52f73cdb67d7
nvme-tcp: add basic support for the C2HTermReq PDU

[ Upstream commit 84e009042d0f3dfe91bec60bcd208ee3f866cbcd ]

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>
Stable-dep-of: ad95bab0cd28 ("nvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/tcp.c
include/linux/nvme-tcp.h