Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149110331
D40618.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40618.diff
View Options
diff --git a/sys/cam/nvme/nvme_xpt.c b/sys/cam/nvme/nvme_xpt.c
--- a/sys/cam/nvme/nvme_xpt.c
+++ b/sys/cam/nvme/nvme_xpt.c
@@ -802,19 +802,22 @@
xpt_action((union ccb*)&cts);
if ((cts.ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)
return;
- nvmex = &cts.xport_specific.nvme;
/* Ask the SIM for its base transfer speed */
xpt_path_inq(&cpi, periph->path);
sbuf_new(&sb, buffer, sizeof(buffer), SBUF_FIXEDLEN);
sbuf_printf(&sb, "%s%d: nvme version %d.%d",
periph->periph_name, periph->unit_number,
- NVME_MAJOR(nvmex->spec),
- NVME_MINOR(nvmex->spec));
- if (nvmex->valid & CTS_NVME_VALID_LINK)
- sbuf_printf(&sb, " x%d (max x%d) lanes PCIe Gen%d (max Gen%d) link",
- nvmex->lanes, nvmex->max_lanes,
- nvmex->speed, nvmex->max_speed);
+ NVME_MAJOR(cts.protocol_version),
+ NVME_MINOR(cts.protocol_version));
+ if (cts.transport == XPORT_NVME) {
+ nvmex = &cts.proto_specific.nvme;
+ if (nvmex->valid & CTS_NVME_VALID_LINK)
+ sbuf_printf(&sb,
+ " x%d (max x%d) lanes PCIe Gen%d (max Gen%d) link",
+ nvmex->lanes, nvmex->max_lanes,
+ nvmex->speed, nvmex->max_speed);
+ }
sbuf_printf(&sb, "\n");
sbuf_finish(&sb);
sbuf_putbuf(&sb);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 23, 8:26 AM (6 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30152265
Default Alt Text
D40618.diff (1 KB)
Attached To
Mode
D40618: nvme_xpt: Tidy nvme_announce_periph for fabrics support.
Attached
Detach File
Event Timeline
Log In to Comment