File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,16 @@ fcloop_t2h_host_release(void *hosthandle)
492
492
/* host handle ignored for now */
493
493
}
494
494
495
+ static int
496
+ fcloop_t2h_host_traddr (void * hosthandle , u64 * wwnn , u64 * wwpn )
497
+ {
498
+ struct fcloop_rport * rport = hosthandle ;
499
+
500
+ * wwnn = rport -> lport -> localport -> node_name ;
501
+ * wwpn = rport -> lport -> localport -> port_name ;
502
+ return 0 ;
503
+ }
504
+
495
505
/*
496
506
* Simulate reception of RSCN and converting it to a initiator transport
497
507
* call to rescan a remote port.
@@ -1074,6 +1084,7 @@ static struct nvmet_fc_target_template tgttemplate = {
1074
1084
.ls_req = fcloop_t2h_ls_req ,
1075
1085
.ls_abort = fcloop_t2h_ls_abort ,
1076
1086
.host_release = fcloop_t2h_host_release ,
1087
+ .host_traddr = fcloop_t2h_host_traddr ,
1077
1088
.max_hw_queues = FCLOOP_HW_QUEUES ,
1078
1089
.max_sgl_segments = FCLOOP_SGL_SEGS ,
1079
1090
.max_dif_sgl_segments = FCLOOP_SGL_SEGS ,
You can’t perform that action at this time.
0 commit comments