Skip to contentSkip to conversation

nvme-fabrics: Add NVME FC Transport support to lpfc

PATCH New James Smart 2 participants 3 messages Jul 23, 2016 – Aug 22, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover nvme-fabrics: Add NVME FC Transport support to lpfc

This patchset adds NVME support to the lpfc FC driver. It reworks the core driver for both NVME and SCSI protocol support, then adds the nvme-over-fabrics host and target interfaces which connect to the NVME FC transport lower-level api.

Patches are cut against the linux-nvme for-4.8/drivers branch

Dependent on:
-the u64 parser patch just posted
-the lpfc 11.2.0.0 patch set posted to linux-scsi a couple weeks back.
http://www.spinics.net/lists/linux-scsi/msg97964.html
http://www.spinics.net/lists/linux-scsi/msg98219.html

Caveats:

-Depends on the lpfc 11.2.0.0 patch set posted to linux-scsi being present
in the tree:
http://www.spinics.net/lists/linux-scsi/msg97964.html
http://www.spinics.net/lists/linux-scsi/msg98219.html

-Depends on the NVME FC Transport patches

-cut against the linux-nvme for-4.8/drivers branch

-Individual patches not tested much individually. All testing has been
with all 3 patches together - base, host, and target.

-Driver depends on NVME-supporting firmware which is not yet generally
available. Contact me if there is a need to obtain the firmware.

-- james

James Smart (3):
nvme_fabrics: Rework lpfc base driver to support the NVME protocol
nvme-fabrics: Add nvme host FC transport support to lpfc driver
nvme-fabrics: Add nvme target FC transport support to lpfc driver

 drivers/scsi/lpfc/Makefile         |    7 +-
 drivers/scsi/lpfc/lpfc.h           |   43 +-
 drivers/scsi/lpfc/lpfc_attr.c      |   69 +-
 drivers/scsi/lpfc/lpfc_crtn.h      |   32 +-
 drivers/scsi/lpfc/lpfc_ct.c        |  379 +++++++---
 drivers/scsi/lpfc/lpfc_debugfs.c   |  636 ++++++++++++++--
 drivers/scsi/lpfc/lpfc_debugfs.h   |  119 ++-
 drivers/scsi/lpfc/lpfc_disc.h      |   17 +-
 drivers/scsi/lpfc/lpfc_els.c       |  212 ++++--
 drivers/scsi/lpfc/lpfc_hbadisc.c   |  352 ++++++++-
 drivers/scsi/lpfc/lpfc_hw.h        |   49 +-
 drivers/scsi/lpfc/lpfc_hw4.h       |  128 +++-
 drivers/scsi/lpfc/lpfc_init.c      |  744 ++++++++++++++----
 drivers/scsi/lpfc/lpfc_logmsg.h    |    1 +
 drivers/scsi/lpfc/lpfc_mbox.c      |   19 +-
 drivers/scsi/lpfc/lpfc_mem.c       |  122 ++-
 drivers/scsi/lpfc/lpfc_nportdisc.c |  150 +++-
 drivers/scsi/lpfc/lpfc_nvme.c      | 1447 ++++++++++++++++++++++++++++++++++++
 drivers/scsi/lpfc/lpfc_nvme.h      |   62 ++
 drivers/scsi/lpfc/lpfc_nvmet.c     | 1269 +++++++++++++++++++++++++++++++
 drivers/scsi/lpfc/lpfc_nvmet.h     |   72 ++
 drivers/scsi/lpfc/lpfc_scsi.c      |   12 +-
 drivers/scsi/lpfc/lpfc_scsi.h      |   19 +-
 drivers/scsi/lpfc/lpfc_sli.c       |  785 +++++++++++++++----
 drivers/scsi/lpfc/lpfc_sli.h       |   30 +-
 drivers/scsi/lpfc/lpfc_sli4.h      |   28 +-
 drivers/scsi/lpfc/lpfc_version.h   |    2 +-
 drivers/scsi/lpfc/lpfc_vport.c     |    1 +
 28 files changed, 6121 insertions(+), 685 deletions(-)
 create mode 100644 drivers/scsi/lpfc/lpfc_nvme.c
 create mode 100644 drivers/scsi/lpfc/lpfc_nvme.h
 create mode 100644 drivers/scsi/lpfc/lpfc_nvmet.c
 create mode 100644 drivers/scsi/lpfc/lpfc_nvmet.h
Signature · 1 line
2.5.0
#1 lore raw

cover nvme-fabrics: Add NVME FC Transport support to lpfc

Quoted 7 lines · James Smart

This patchset adds NVME support to the lpfc FC driver. It reworks the core driver for both NVME and SCSI protocol support, then adds the nvme-over-fabrics host and target interfaces which connect to the NVME FC transport lower-level api.

Patches are cut against the linux-nvme for-4.8/drivers branch

Before reviewing the details: what's the plan for merging this as we'll have dependencies on both the SCSI and the block tree?

#2 lore raw

cover nvme-fabrics: Add NVME FC Transport support to lpfc

Quoted 9 lines · Christoph Hellwig
Quoted 6 lines · James Smart

This patchset adds NVME support to the lpfc FC driver. It reworks the core driver for both NVME and SCSI protocol support, then adds the nvme-over-fabrics host and target interfaces which connect to the NVME FC transport lower-level api.

Patches are cut against the linux-nvme for-4.8/drivers branch

Before reviewing the details: what's the plan for merging this as we'll have dependencies on both the SCSI and the block tree?

Good question. With the first round of lpfc patches, I tried to ensure
we had all the cross-protocol infrastructure in place such that the driver can have 2 halves that effectively run independently. I'm hoping it means that I can submit scsi stuff independent from nvme stuff, but we'll have to see how it goes over time.

I'm open to suggestions on how best to manage the 2 trees - e.g. scsi stuff goes in scsi tree, and if a dependency then has to be pulled into
block ? nvme stuff only to block. The initial lpfc patch set should
have all the scsi infrastructure pulled into the 4.8 merge, so hopefully that dependency has been resolved already.

-- james

Any recommendations ?