nvme: add accessor to namespace id and eui64
authorPatrick Wildt <patrick@blueri.se>
Thu, 3 Oct 2019 11:48:47 +0000 (13:48 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Oct 2019 14:02:37 +0000 (16:02 +0200)
commitc50b2883dfc1ce355dc37238741ef97cd2c5d000
treeaa8f9e9ca55add15791a5cb3d16e3768a0479be6
parent6810caf856ba68e124e4f8f9a522996a45f5232d
nvme: add accessor to namespace id and eui64

This adds a function which can be used by e.g. EFI to retrieve
the namespace identifier and EUI64.  For that it adds the EUI64
to its driver internal namespace structure and copies the EUI64
during namespace identification.

Signed-off-by: Patrick Wildt <patrick@blueri.se>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c
drivers/nvme/nvme.h
include/nvme.h