summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorSergey Samoylenko <s.samoylenko@yadro.com>2021-04-20 21:59:20 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-05-15 14:14:28 -0400
commit2469f1e0412cb053e37b7499ce5e48b6be4d7653 (patch)
tree9105017d155c655f2137b7fb7ad12170f1b67887 /include/target
parent17f947b8b06f57615d31e4159dec1d5d7dda775f (diff)
downloadlinux-2469f1e0412cb053e37b7499ce5e48b6be4d7653.tar.bz2
scsi: target: core: Add configurable IEEE Company ID attribute
Implement an attribute which provides a way to set a company specific WWN in configfs via: target/core/$backstore/$name/wwn/company_id The Open Fabrics Alliance ID 001405h remains the default. Link: https://lore.kernel.org/r/20210420185920.42431-3-s.samoylenko@yadro.com Signed-off-by: Sergey Samoylenko <s.samoylenko@yadro.com> Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index d1f7d2a45354..85c16c266eac 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -326,6 +326,7 @@ struct t10_wwn {
char model[INQUIRY_MODEL_LEN + 1];
char revision[INQUIRY_REVISION_LEN + 1];
char unit_serial[INQUIRY_VPD_SERIAL_LEN];
+ u32 company_id;
spinlock_t t10_vpd_lock;
struct se_device *t10_dev;
struct config_group t10_wwn_group;