Skip to content

RFC Application specific identification support

Muneendra linux-block linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest16 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16blkcg:Introduce blkio.app_identifier knob to blkio controllerblock/blk-cgroup.c include/linux/blk-cgroup.h+51 -011 replies
2/16lpfc: vmid: Add the datastructure for supporting VMID in lpfcdrivers/scsi/lpfc/lpfc.h+98 -00 replies
3/16lpfc: vmid: API to check if VMID is enabled.drivers/scsi/lpfc/lpfc.h+24 -00 replies
4/16lpfc: vmid: Supplementary data structures for vmiddrivers/scsi/lpfc/lpfc_disc.h drivers/scsi/lpfc/lpfc_hw.h drivers/scsi/lpfc/lpfc_sli.h+129 -40 replies
5/16lpfc: vmid: Forward declarations for APIsdrivers/scsi/lpfc/lpfc_crtn.h+11 -00 replies
6/16lpfc: vmid: Add support for vmid in mailbox commanddrivers/scsi/lpfc/lpfc_hw4.h+12 -00 replies
7/16lpfc: vmid: VMID params initializationdrivers/scsi/lpfc/lpfc_attr.c+47 -00 replies
8/16lpfc: vmid: vmid resource allocationdrivers/scsi/lpfc/lpfc_init.c drivers/scsi/lpfc/lpfc_mbox.c drivers/scsi/lpfc/lpfc_sli.c+79 -00 replies
9/16lpfc: vmid: cleanup vmid resourcesdrivers/scsi/lpfc/lpfc_init.c drivers/scsi/lpfc/lpfc_scsi.c+25 -00 replies
10/16lpfc: vmid: Implements ELS commands for appid patchdrivers/scsi/lpfc/lpfc_els.c+349 -70 replies
11/16lpfc: vmid: Functions to manage vmidsdrivers/scsi/lpfc/lpfc_scsi.c+139 -00 replies
12/16lpfc: vmid: Implements CT commands for appid.drivers/scsi/lpfc/lpfc_ct.c+245 -110 replies
13/16lpfc: vmid: Appends the vmid in the wqe before sending requestdrivers/scsi/lpfc/lpfc_sli.c+55 -10 replies
14/16lpfc: vmid: Timeout implementation for vmiddrivers/scsi/lpfc/lpfc_hbadisc.c drivers/scsi/lpfc/lpfc_init.c+149 -00 replies
15/16lpfc: vmid: Adding qfpa and vmid timeout check in worker threaddrivers/scsi/lpfc/lpfc_hbadisc.c+42 -00 replies
16/16lpfc: vmid: Introducing vmid in io path.drivers/scsi/lpfc/lpfc_scsi.c+163 -025 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 00/16] Application specific identification support

Various virtualization technologies used in Fibre Channel SAN deployments have created the opportunity to identify and associate traffic with specific virtualized applications.

The concepts behind the T11 Application Services standard is to provide the general mechanisms needed to identify virtualized services.

This patch set enables the Fabric and the storage targets to identify, monitor, and handle FC traffic
based on VMID .

It added a new knob app_identifier in blkio controller and also provides a mechanism for inserting UUID info.

It also provides a mechanism
for inserting application specific identification into the FC frame.

The HBA driver(lpfc) retrieves the UUID when the first IO is initiated and registers it with the Fabric.
The Fabric assigns an VMID which is unique within the fabric. The resulting VMID is stored against the UUID/per-port. The VMID is inserted in all the subsequent FC frames that are originating from the UUID, and egressing the specific port through which the fabric is connected.
HBA maintains mapping of fabric associated IDs (VMID) to compute associated IDs (UUID).

The HBA changes currently supports only for scsi. For VM this patch currently supports for
virtio device(device type:Disk Device and BUS type :VIRTIO)

Tests done:
We have tested this patch by attaching the device to
a KVM as a virtio device and added UUID to blkio cgroup as shown below.

echo "UUID" > /sys/fs/cgroup/blkio/machine.slice/machine-qemu\\x2d<ID>\\
x2d<VMNAME>.scope/blkio.app_identifier

Then from the guest we run couple of io tests and checked the VMID are passed to the fabric to identify,monitor the fc frames.

The patches were cut against 5.9/scsi-queue tree

Gaurav Srivastava (15):
lpfc: vmid: Add the datastructure for supporting VMID in lpfc
lpfc: vmid: API to check if VMID is enabled.
lpfc: vmid: Supplementary data structures for vmid
lpfc: vmid: Forward declarations for APIs
lpfc: vmid: Add support for vmid in mailbox command
lpfc: vmid: VMID params initialization
lpfc: vmid: vmid resource allocation
lpfc: vmid: cleanup vmid resources
lpfc: vmid: Implements ELS commands for appid patch
lpfc: vmid: Functions to manage vmids
lpfc: vmid: Implements CT commands for appid.
lpfc: vmid: Appends the vmid in the wqe before sending request
lpfc: vmid: Timeout implementation for vmid
lpfc: vmid: Adding qfpa and vmid timeout check in worker thread
lpfc: vmid: Introducing vmid in io path.

Muneendra (1):
blkcg:Introduce blkio.app_identifier knob to blkio controller

 block/blk-cgroup.c               |  32 +++
 drivers/scsi/lpfc/lpfc.h         | 122 +++++++++++
 drivers/scsi/lpfc/lpfc_attr.c    |  47 ++++
 drivers/scsi/lpfc/lpfc_crtn.h    |  11 +
 drivers/scsi/lpfc/lpfc_ct.c      | 256 +++++++++++++++++++++-
 drivers/scsi/lpfc/lpfc_disc.h    |   1 +
 drivers/scsi/lpfc/lpfc_els.c     | 356 ++++++++++++++++++++++++++++++-
 drivers/scsi/lpfc/lpfc_hbadisc.c | 151 +++++++++++++
 drivers/scsi/lpfc/lpfc_hw.h      | 124 ++++++++++-
 drivers/scsi/lpfc/lpfc_hw4.h     |  12 ++
 drivers/scsi/lpfc/lpfc_init.c    | 108 ++++++++++
 drivers/scsi/lpfc/lpfc_mbox.c    |   6 +
 drivers/scsi/lpfc/lpfc_scsi.c    | 323 ++++++++++++++++++++++++++++
 drivers/scsi/lpfc/lpfc_sli.c     |  65 +++++-
 drivers/scsi/lpfc/lpfc_sli.h     |   8 +
 include/linux/blk-cgroup.h       |  19 ++
 16 files changed, 1618 insertions(+), 23 deletions(-)
Signature · 1 line
2.18.2