nvme-pci: Add .get_address ctrl callback
authorKeith Busch <keith.busch@intel.com>
Thu, 8 Mar 2018 21:50:32 +0000 (14:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2018 14:53:43 +0000 (08:53 -0600)
commit97c122233f73e91ceed5038e6e59fc5009305f7e
tree91f4de5e0ac1cc1c8bc91f4b6bd6fd159da9a4f8
parent70da6094a646f0f2d823e077614840cf21055580
nvme-pci: Add .get_address ctrl callback

The nvme-fabrics exports the controller address to sysfs, and we'd
like to have parity with this feature for PCIe. This patch provides
the appropiate callback and returns the controller address as the pci
domain:bus:device.function.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c