svn commit: r314257 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Sat Feb 25 14:36:25 UTC 2017
Author: mav
Date: Sat Feb 25 14:36:24 2017
New Revision: 314257
URL: https://svnweb.freebsd.org/changeset/base/314257
Log:
Add reporting SAS protocol, in case we ever have one.
MFC after: 2 weeks
Modified:
head/sys/cam/ctl/ctl.c
head/sys/cam/ctl/ctl_frontend.c
Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c Sat Feb 25 14:24:29 2017 (r314256)
+++ head/sys/cam/ctl/ctl.c Sat Feb 25 14:36:24 2017 (r314257)
@@ -9549,6 +9549,8 @@ ctl_inquiry_evpd_devid(struct ctl_scsiio
if (port && port->port_type == CTL_PORT_FC)
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)
proto = SCSI_PROTO_ISCSI << 4;
else
Modified: head/sys/cam/ctl/ctl_frontend.c
==============================================================================
--- head/sys/cam/ctl/ctl_frontend.c Sat Feb 25 14:24:29 2017 (r314256)
+++ head/sys/cam/ctl/ctl_frontend.c Sat Feb 25 14:36:24 2017 (r314257)
@@ -264,6 +264,8 @@ ctl_port_set_wwns(struct ctl_port *port,
if (port->port_type == CTL_PORT_FC)
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)
proto = SCSI_PROTO_ISCSI << 4;
else
More information about the svn-src-all
mailing list