diff options
author | mav <mav@FreeBSD.org> | 2017-03-06 06:36:15 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2017-03-06 06:36:15 +0000 |
commit | 56ab8713da065b1fd9a52e039a2be799d398c9af (patch) | |
tree | fe944bb669cfeec37dc318d0bae42075cc4cfa83 /sys/cam | |
parent | 82a38e61e4095ee55774d7461b4e5e136ea5eae0 (diff) | |
download | FreeBSD-src-56ab8713da065b1fd9a52e039a2be799d398c9af.zip FreeBSD-src-56ab8713da065b1fd9a52e039a2be799d398c9af.tar.gz |
MFC r314257: Add reporting SAS protocol, in case we ever have one.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/ctl/ctl.c | 2 | ||||
-rw-r--r-- | sys/cam/ctl/ctl_frontend.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index d02301f..bf23a46 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -9549,6 +9549,8 @@ ctl_inquiry_evpd_devid(struct ctl_scsiio *ctsio, int alloc_len) 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 diff --git a/sys/cam/ctl/ctl_frontend.c b/sys/cam/ctl/ctl_frontend.c index 765a31d..2c431b0 100644 --- a/sys/cam/ctl/ctl_frontend.c +++ b/sys/cam/ctl/ctl_frontend.c @@ -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) 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 |