Add reporting SAS protocol, in case we ever have one.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2017-02-25 14:36:24 +00:00
parent ebaf2c29d7
commit a9d2a1930b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314257
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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