svn commit: r314754 - stable/11/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Mon Mar 6 06:36:17 UTC 2017


Author: mav
Date: Mon Mar  6 06:36:15 2017
New Revision: 314754
URL: https://svnweb.freebsd.org/changeset/base/314754

Log:
  MFC r314257: Add reporting SAS protocol, in case we ever have one.

Modified:
  stable/11/sys/cam/ctl/ctl.c
  stable/11/sys/cam/ctl/ctl_frontend.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cam/ctl/ctl.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl.c	Mon Mar  6 06:35:32 2017	(r314753)
+++ stable/11/sys/cam/ctl/ctl.c	Mon Mar  6 06:36:15 2017	(r314754)
@@ -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: stable/11/sys/cam/ctl/ctl_frontend.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl_frontend.c	Mon Mar  6 06:35:32 2017	(r314753)
+++ stable/11/sys/cam/ctl/ctl_frontend.c	Mon Mar  6 06:36:15 2017	(r314754)
@@ -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