summaryrefslogtreecommitdiff
path: root/tests/nodedevxml2xmltest.c
diff options
context:
space:
mode:
authorBjoern Walk <bwalk@linux.vnet.ibm.com>2017-05-22 08:38:25 +0200
committerJohn Ferlan <jferlan@redhat.com>2017-05-26 10:44:05 -0400
commitbb2adfe93476d0c1de2305a0baefd3520329682b (patch)
tree5839881b27eb270a40fa4e1758104ffec995e5ca /tests/nodedevxml2xmltest.c
parentc47a3b130dd19317d1b94f975e442ab4bc569a55 (diff)
downloadlibvirt-bb2adfe93476d0c1de2305a0baefd3520329682b.tar.gz
node_device: introduce new capability FC_RPORT
Similar to scsi_host and fc_host, there is a relation between a scsi_target and its transport specific fc_remote_port. Let's expose this relation and relevant information behind it. An example for a virsh nodedev-dumpxml: virsh # nodedev-dumpxml scsi_target0_0_0 <device> <name>scsi_target0_0_0</name> <path>/sys/devices/[...]/host0/rport-0:0-0/target0:0:0</path> <parent>scsi_host0</parent> <capability type='scsi_target'> <target>target0:0:0</target> <capability type='fc_remote_port'> <rport>rport-0:0-0</rport> <wwpn>0x9d73bc45f0e21a86</wwpn> </capability> </capability> </device> Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Diffstat (limited to 'tests/nodedevxml2xmltest.c')
-rw-r--r--tests/nodedevxml2xmltest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c
index 805deef269..5d9f4724db 100644
--- a/tests/nodedevxml2xmltest.c
+++ b/tests/nodedevxml2xmltest.c
@@ -95,6 +95,7 @@ mymain(void)
DO_TEST("pci_0000_00_02_0_header_type");
DO_TEST("pci_0000_00_1c_0_header_type");
DO_TEST("scsi_target0_0_0");
+ DO_TEST("scsi_target1_0_0");
DO_TEST("pci_0000_02_10_7_sriov");
DO_TEST("pci_0000_02_10_7_sriov_vfs");
DO_TEST("pci_0000_02_10_7_sriov_zero_vfs_max_count");