Re: [PATCH 2/2] virtio_scsi: Implement fc_host

From
Paolo Bonzini <pbonzini@redhat.com>
Date
2017-01-16 16:46:03
Also in
linux-scsi, lkml
Reply to
Fam Zheng, 2017-01-16

On 16/01/2017 17:04, Fam Zheng wrote:
quoted hunk ↗ jump to hunk
+		node_name = virtio_cread64(vdev,
+			offsetof(struct virtio_scsi_config, primary_wwnn));
+		port_name = virtio_cread64(vdev,
+			offsetof(struct virtio_scsi_config, primary_wwpn));
+	} else {
+		node_name = virtio_cread64(vdev,
+			offsetof(struct virtio_scsi_config, secondary_wwnn));
+		port_name = virtio_cread64(vdev,
+			offsetof(struct virtio_scsi_config, secondary_wwpn));
Is the endianness correct for big-endian host here?

Thanks,

Paolo
Thread (6 messages) 6 messages, 3 authors, last reply 2017-01-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help