diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-09-27 16:02:40 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-09-27 16:02:40 +0000 |
commit | 53e3011adf3dc428b24dc18abd3429df8a41c25a (patch) | |
tree | 36981258f450b5709ea2c47beaa2257880103d0f /sys/cam/cam_xpt.c | |
parent | 9cc376c3e519c0a11c4ba3a51e3c13f03a6f4918 (diff) | |
download | FreeBSD-src-53e3011adf3dc428b24dc18abd3429df8a41c25a.zip FreeBSD-src-53e3011adf3dc428b24dc18abd3429df8a41c25a.tar.gz |
Make sure the CCB xflags field is initialized to zero so that
CAM_EXTLUN_VALID is not erroneously set. Also add an XPORT_SRP
identifier to the known SCSI transports for the SCSI RDMA protocol, as
used, for example with Infiniband storage.
Reviewed by: scottl
Approved by: re (marius)
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 2c187d3..142195b 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -3337,6 +3337,7 @@ xpt_setup_ccb(struct ccb_hdr *ccb_h, struct cam_path *path, u_int32_t priority) } ccb_h->pinfo.index = CAM_UNQUEUED_INDEX; ccb_h->flags = 0; + ccb_h->xflags = 0; } /* Path manipulation functions */ @@ -3891,6 +3892,7 @@ xpt_bus_register(struct cam_sim *sim, device_t parent, u_int32_t bus) case XPORT_FC: case XPORT_USB: case XPORT_ISCSI: + case XPORT_SRP: case XPORT_PPB: new_bus->xport = scsi_get_xport(); break; |