mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
Add reporting SAS protocol, in case we ever have one.
MFC after: 2 weeks
This commit is contained in:
parent
ebaf2c29d7
commit
a9d2a1930b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314257
|
@ -9549,6 +9549,8 @@ ctl_inquiry_evpd_devid(struct ctl_scsiio *ctsio, int alloc_len)
|
||||||
|
|
||||||
if (port && port->port_type == CTL_PORT_FC)
|
if (port && port->port_type == CTL_PORT_FC)
|
||||||
proto = SCSI_PROTO_FC << 4;
|
proto = SCSI_PROTO_FC << 4;
|
||||||
|
else if (port->port_type == CTL_PORT_SAS)
|
||||||
|
proto = SCSI_PROTO_SAS << 4;
|
||||||
else if (port && port->port_type == CTL_PORT_ISCSI)
|
else if (port && port->port_type == CTL_PORT_ISCSI)
|
||||||
proto = SCSI_PROTO_ISCSI << 4;
|
proto = SCSI_PROTO_ISCSI << 4;
|
||||||
else
|
else
|
||||||
|
|
|
@ -264,6 +264,8 @@ ctl_port_set_wwns(struct ctl_port *port, int wwnn_valid, uint64_t wwnn,
|
||||||
|
|
||||||
if (port->port_type == CTL_PORT_FC)
|
if (port->port_type == CTL_PORT_FC)
|
||||||
proto = SCSI_PROTO_FC << 4;
|
proto = SCSI_PROTO_FC << 4;
|
||||||
|
else if (port->port_type == CTL_PORT_SAS)
|
||||||
|
proto = SCSI_PROTO_SAS << 4;
|
||||||
else if (port->port_type == CTL_PORT_ISCSI)
|
else if (port->port_type == CTL_PORT_ISCSI)
|
||||||
proto = SCSI_PROTO_ISCSI << 4;
|
proto = SCSI_PROTO_ISCSI << 4;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue