Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1567102 > unrolled thread
| Started by | Fam Zheng <famz@redhat.com> |
|---|---|
| First post | 2017-01-26 04:50 +0100 |
| Last post | 2017-01-26 22:50 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 1/2] virtio_scsi: Add fc_host definitions Fam Zheng <famz@redhat.com> - 2017-01-26 04:50 +0100
Re: [PATCH v2 1/2] virtio_scsi: Add fc_host definitions "Michael S. Tsirkin" <mst@redhat.com> - 2017-01-26 22:50 +0100
| From | Fam Zheng <famz@redhat.com> |
|---|---|
| Date | 2017-01-26 04:50 +0100 |
| Subject | [PATCH v2 1/2] virtio_scsi: Add fc_host definitions |
| Message-ID | <t3Jep-2kd-1@gated-at.bofh.it> |
Signed-off-by: Fam Zheng <famz@redhat.com>
---
include/uapi/linux/virtio_scsi.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/uapi/linux/virtio_scsi.h b/include/uapi/linux/virtio_scsi.h
index cc18ef8..a26fb31 100644
--- a/include/uapi/linux/virtio_scsi.h
+++ b/include/uapi/linux/virtio_scsi.h
@@ -113,6 +113,11 @@ struct virtio_scsi_config {
__u16 max_channel;
__u16 max_target;
__u32 max_lun;
+ __u8 primary_wwpn[8];
+ __u8 primary_wwnn[8];
+ __u8 secondary_wwpn[8];
+ __u8 secondary_wwnn[8];
+ __u8 primary_active;
} __attribute__((packed));
/* Feature Bits */
@@ -120,6 +125,7 @@ struct virtio_scsi_config {
#define VIRTIO_SCSI_F_HOTPLUG 1
#define VIRTIO_SCSI_F_CHANGE 2
#define VIRTIO_SCSI_F_T10_PI 3
+#define VIRTIO_SCSI_F_FC_HOST 4
/* Response codes */
#define VIRTIO_SCSI_S_OK 0
--
2.9.3
[toc] | [next] | [standalone]
| From | "Michael S. Tsirkin" <mst@redhat.com> |
|---|---|
| Date | 2017-01-26 22:50 +0100 |
| Message-ID | <t405z-458-13@gated-at.bofh.it> |
| In reply to | #1567102 |
On Thu, Jan 26, 2017 at 11:41:08AM +0800, Fam Zheng wrote:
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
I pefer combining this with implementation,
hard to reason about interface alone.
> include/uapi/linux/virtio_scsi.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/uapi/linux/virtio_scsi.h b/include/uapi/linux/virtio_scsi.h
> index cc18ef8..a26fb31 100644
> --- a/include/uapi/linux/virtio_scsi.h
> +++ b/include/uapi/linux/virtio_scsi.h
> @@ -113,6 +113,11 @@ struct virtio_scsi_config {
> __u16 max_channel;
> __u16 max_target;
> __u32 max_lun;
> + __u8 primary_wwpn[8];
> + __u8 primary_wwnn[8];
> + __u8 secondary_wwpn[8];
> + __u8 secondary_wwnn[8];
> + __u8 primary_active;
Is this in fact a binary value?
Also pls add padding to align on 8 byte boundary.
> } __attribute__((packed));
>
> /* Feature Bits */
> @@ -120,6 +125,7 @@ struct virtio_scsi_config {
> #define VIRTIO_SCSI_F_HOTPLUG 1
> #define VIRTIO_SCSI_F_CHANGE 2
> #define VIRTIO_SCSI_F_T10_PI 3
> +#define VIRTIO_SCSI_F_FC_HOST 4
>
> /* Response codes */
> #define VIRTIO_SCSI_S_OK 0
> --
> 2.9.3
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web