Skip to content

Add command id quirk for fabrics

Max Gurtovoy linux-nvme 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nvme-fabrics: add command id quirk for fabrics controllersdrivers/nvme/host/fabrics.c drivers/nvme/host/fabrics.h+8 -10 replies
2/4nvme-rdma: add command id quirk for RDMA controllersdrivers/nvme/host/rdma.c+5 -20 replies
3/4nvme-tcp: add command id quirk for TCP controllersdrivers/nvme/host/tcp.c+5 -10 replies
4/4nvme-fc: add command id quirk for FC controllersdrivers/nvme/host/fc.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] Add command id quirk for fabrics

Hi all,
Commit a2941f6aa71a ("nvme: add command id quirk for apple controllers") was merged to fix a regression in apple controllers that was introduced after merging commit e7006de6c238 ("nvme: code command_id with a genctr for use-after-free validation").

This series is comming to enable the same quirk for fabrics controllers that used the command id index in the same way that was probably used in apple controllers.

This series is a complementary series to NVMe-CLi and libnvme patches that will introduce a new flag for "nvme connect" command:
"--skip-cid-gen". Using this flag will cause enabling NVME_QUIRK_SKIP_CID_GEN quirk and will actually add the ability to ignore the command id generation for other transport alongside PCI transport.

default value of the flag is false.

Usage:
nvme connect -t <transport> -n <nqn> -a <addr> -s <sid> --skip-cid-gen or
nvme connect -t <transport> -n <nqn> -a <addr> -s <sid> -p

Max Gurtovoy (4):
nvme-fabrics: add command id quirk for fabrics controllers
nvme-rdma: add command id quirk for RDMA controllers
nvme-tcp: add command id quirk for TCP controllers
nvme-fc: add command id quirk for FC controllers

 drivers/nvme/host/fabrics.c | 7 ++++++-
 drivers/nvme/host/fabrics.h | 2 ++
 drivers/nvme/host/fc.c      | 6 +++++-
 drivers/nvme/host/rdma.c    | 7 +++++--
 drivers/nvme/host/tcp.c     | 6 +++++-
 5 files changed, 23 insertions(+), 5 deletions(-)
Signature · 1 line
2.18.1