[PATCH 0/4] nvme: add ctrl sgl supported helper

Chaitanya Kulkarni chaitanya.kulkarni at wdc.com
Wed Jun 9 18:28:22 PDT 2021


Hi,

For various transports such as fc/tcp/pci it is common to check if
NVMe SGLs are supported or not by the controller.

Instead of open coding that check add nvme_ctrl_sgl_supported()
helper and use it in the respective transports on the host side.

-ck

Chaitanya Kulkarni (4):
  nvme: add a helper to check ctrl sgl support
  nvme-fc: use ctrl sgl check helper
  nvm-pci: use ctrl sgl check helper
  nvme-tcp: use ctrl sgl check helper

 drivers/nvme/host/fc.c   | 2 +-
 drivers/nvme/host/nvme.h | 8 ++++++++
 drivers/nvme/host/pci.c  | 4 ++--
 drivers/nvme/host/tcp.c  | 2 +-
 4 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.22.1




More information about the Linux-nvme mailing list