mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[SCSI] fc transport: add permanent_port_name fc_host attribute
Add fc_host attribute permanent_port_name which is used to show the port name of the primary port - the port that initially logged into the fabric. For a virtual port (registered via the primary port with FDISC command) it is useful to know not only its (virtual) port name but also the permanent port name. Signed-off-by: Andreas Herrmann <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
a09c631121
commit
6b7281d0a0
2 changed files with 8 additions and 0 deletions
|
|
@ -303,6 +303,7 @@ struct fc_host_attrs {
|
|||
/* Fixed Attributes */
|
||||
u64 node_name;
|
||||
u64 port_name;
|
||||
u64 permanent_port_name;
|
||||
u32 supported_classes;
|
||||
u8 supported_fc4s[FC_FC4_LIST_SIZE];
|
||||
char symbolic_name[FC_SYMBOLIC_NAME_SIZE];
|
||||
|
|
@ -338,6 +339,8 @@ struct fc_host_attrs {
|
|||
(((struct fc_host_attrs *)(x)->shost_data)->node_name)
|
||||
#define fc_host_port_name(x) \
|
||||
(((struct fc_host_attrs *)(x)->shost_data)->port_name)
|
||||
#define fc_host_permanent_port_name(x) \
|
||||
(((struct fc_host_attrs *)(x)->shost_data)->permanent_port_name)
|
||||
#define fc_host_supported_classes(x) \
|
||||
(((struct fc_host_attrs *)(x)->shost_data)->supported_classes)
|
||||
#define fc_host_supported_fc4s(x) \
|
||||
|
|
@ -426,6 +429,7 @@ struct fc_function_template {
|
|||
/* host fixed attributes */
|
||||
unsigned long show_host_node_name:1;
|
||||
unsigned long show_host_port_name:1;
|
||||
unsigned long show_host_permanent_port_name:1;
|
||||
unsigned long show_host_supported_classes:1;
|
||||
unsigned long show_host_supported_fc4s:1;
|
||||
unsigned long show_host_symbolic_name:1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue