Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi more debug output
details: https://anonhg.NetBSD.org/src/rev/a3d0f67a77f8
branches: trunk
changeset: 345712:a3d0f67a77f8
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 05 11:01:39 2016 +0000
description:
more debug output
diffstat:
sys/dev/iscsi/iscsi_rcv.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r 16e843f7569f -r a3d0f67a77f8 sys/dev/iscsi/iscsi_rcv.c
--- a/sys/dev/iscsi/iscsi_rcv.c Sun Jun 05 10:45:16 2016 +0000
+++ b/sys/dev/iscsi/iscsi_rcv.c Sun Jun 05 11:01:39 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_rcv.c,v 1.18 2016/06/05 05:40:29 mlelstv Exp $ */
+/* $NetBSD: iscsi_rcv.c,v 1.19 2016/06/05 11:01:39 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -132,13 +132,20 @@
ccb = &conn->session->ccb[cidx];
- if (ccb->ITT != itt || ccb->disp <= CCBDISP_BUSY) {
+ if (ccb->ITT != itt) {
DEBC(conn, 0,
("ccb_from_itt: received invalid CCB itt %08x != %08x\n",
itt, ccb->ITT));
return NULL;
}
+ if (ccb->disp <= CCBDISP_BUSY) {
+ DEBC(conn, 0,
+ ("ccb_from_itt: received CCB with invalid disp %d\n",
+ ccb->disp));
+ return NULL;
+ }
+
return ccb;
}
@@ -1029,7 +1036,8 @@
}
}
- DEBC(conn, 99, ("Received PDU ExpCmdSN = %u\n",
+ DEBC(conn, 99, ("Received PDU ExpCmdSN = %u, MaxCmdSN = %u\n",
+ ntohl(pdu->pdu.p.response.ExpCmdSN),
ntohl(pdu->pdu.p.response.ExpCmdSN)));
req_ccb = ccb_from_itt(conn, pdu->pdu.InitiatorTaskTag);
Home |
Main Index |
Thread Index |
Old Index