[PATCH 0/4] nvme-fabrics: add support for TP8010

Martin Belanger nitram_67 at hotmail.com
Tue Jan 25 06:59:52 PST 2022


From: Martin Belanger <martin.belanger at dell.com>

TP8010 defines the Central Discovery Controller (CDC). To tell a CDC
apart from a DDC (Direct Discovery Controller), the Identify response
now carries a Discovery Controller Type (dctype) attribute.

TP8010 also defines a new Discovery Information Management (DIM) PDU
which is used to perform explicit registration with CDCs and DDCs.
This new PDU carries extra information such as the Entity Name (ENAME),
the Entity Version (EVER), the Symbolic Name, etc.

This set of patches adds support for TP8010 by exposing the dctype
through the sysfs. It also adds the following two new configuration
parameters:

1) "register" - This is used to tell the kernel that the user
wants to perform explicit registration using the DIM PDU. Without
this, the driver will operate as it did before.

2) "hostsymname" - This is used to specify an optional Symbolic Name.

Martin Belanger (4):
  nvme-fabrics: add discovery controller type
  nvme: add host symbolic name
  nvme-fabrics: add tp8010 support
  nvme-fabrics: add explicit deregistration on disconnect.

 drivers/nvme/host/core.c    |  17 +++
 drivers/nvme/host/fabrics.c | 181 +++++++++++++++++++++++-
 drivers/nvme/host/fabrics.h |  11 ++
 drivers/nvme/host/nvme.h    |   2 +
 drivers/nvme/host/tcp.c     |  61 +++++++-
 include/linux/nvme.h        | 267 ++++++++++++++++++++++++++++++++++--
 6 files changed, 524 insertions(+), 15 deletions(-)

-- 
2.34.1




More information about the Linux-nvme mailing list