Re: [PATCH v9 03/13] nvme: Added a newsysfs attribute appid_store
From: Benjamin Block <hidden>
Date: 2021-04-18 15:51:37
Also in:
linux-nvme, linux-scsi
From: Benjamin Block <hidden>
Date: 2021-04-18 15:51:37
Also in:
linux-nvme, linux-scsi
On Wed, Apr 07, 2021 at 04:36:27AM +0530, Muneendra wrote:
Added a new sysfs attribute appid_store under /sys/class/fc/fc_udev_device/* With this new interface the user can set the application identfier in the blkcg associted with cgroup id. Once the application identifer has set with this interface it allows identification of traffic sources at an individual cgroup based Applications (ex:virtual machine (VM))level in both host and fabric infrastructure(FC). Below is the interface provided to set the app_id echo "<cgroupid>:<appid>" >> /sys/class/fc/fc_udev_device/appid_store echo "457E:100000109b521d27" >> /sys/class/fc/fc_udev_device/appid_store Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Muneendra <redacted> --- v9: No change v8: No change v7: No change v6: No change v5: Replaced APPID_LEN with FC_APPID_LEN v4: No change v3: Replaced blkcg_set_app_identifier function with blkcg_set_fc_appid v2: New Patch --- drivers/nvme/host/fc.c | 73 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-)
Hmm, I wonder why only NVMe-FC? Or is this just for the moment? We also have the FC transport class for SCSI; I assume this could feed the same IDs into the LLDs.