]> www.infradead.org Git - nvme.git/commit
nvmet: Add vendor_id and subsys_vendor_id subsystem attributes
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 4 Jan 2025 04:59:35 +0000 (13:59 +0900)
committerKeith Busch <kbusch@kernel.org>
Sat, 11 Jan 2025 03:30:46 +0000 (19:30 -0800)
commit5d4f4ea8fa2992eaf7040aab2f87e8dc849387fd
treee989820336382f3a85c2dcc10e1d5cad38045966
parent30e77e0fbec6940ecc5c79ffe0f076c54cf5a8d9
nvmet: Add vendor_id and subsys_vendor_id subsystem attributes

Define the new vendor_id and subsys_vendor_id configfs attribute for
target subsystems. These attributes are respectively reported as the
vid field and as the ssvid field of the identify controller data of
a target controllers using the subsystem for which these attributes
are set.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
Tested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/configfs.c
drivers/nvme/target/nvmet.h