nvme: expose hostid via sysfs for fabrics controllers
authorSagi Grimberg <sagi@grimberg.me>
Sat, 8 Feb 2020 01:13:54 +0000 (17:13 -0800)
committerKeith Busch <kbusch@kernel.org>
Wed, 25 Mar 2020 19:45:12 +0000 (04:45 +0900)
commit45fb19f766d94a642cd820fe523ac29f502eece2
tree894c15164fb3721057de06df79eb836ea42811d4
parent76171c6cdf832bc18b6d8207c9be94d78e54ed09
nvme: expose hostid via sysfs for fabrics controllers

We allow userspace to connect with a custom hostid which is useful for
certain use-cases. However there is is no way to tell what is the hostid
used to connect to a given controller.

Expose this so userspace can correlate controllers based on hostid.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c