Author: mav Date: Tue Nov 24 17:37:12 2020 New Revision: 367991 URL: https://svnweb.freebsd.org/changeset/base/367991
Log: Update RQSFLAG_* definitions. Modified: head/sys/dev/isp/isp.c head/sys/dev/isp/ispmbox.h Modified: head/sys/dev/isp/isp.c ============================================================================== --- head/sys/dev/isp/isp.c Tue Nov 24 17:32:49 2020 (r367990) +++ head/sys/dev/isp/isp.c Tue Nov 24 17:37:12 2020 (r367991) @@ -3225,6 +3225,7 @@ isp_intr_respq(ispsoftc_t *isp) XS_T *xs, *cont_xs; uint8_t qe[QENTRY_LEN]; isp24xx_statusreq_t *sp = (isp24xx_statusreq_t *)qe; + ispstatus_cont_t *scp = (ispstatus_cont_t *)qe; isphdr_t *hp; uint8_t *resp, *snsp; int buddaboom, completion_status, cont = 0, etype, i; @@ -3272,7 +3273,6 @@ isp_intr_respq(ispsoftc_t *isp) req_state_flags = 0; resid = sp->req_resid; } else if (etype == RQSTYPE_STATUS_CONT) { - ispstatus_cont_t *scp = (ispstatus_cont_t *)qe; isp_get_cont_response(isp, (ispstatus_cont_t *)hp, scp); if (cont > 0) { i = min(cont, sizeof(scp->req_sense_data)); @@ -3310,24 +3310,13 @@ isp_intr_respq(ispsoftc_t *isp) buddaboom = 0; if (sp->req_header.rqs_flags & RQSFLAG_MASK) { - if (sp->req_header.rqs_flags & RQSFLAG_CONTINUATION) { - isp_print_qentry(isp, "unexpected continuation segment", + if (sp->req_header.rqs_flags & RQSFLAG_BADTYPE) { + isp_print_qentry(isp, "invalid entry type", cptr, hp); - continue; - } - if (sp->req_header.rqs_flags & RQSFLAG_FULL) { - isp_prt(isp, ISP_LOG_WARN1, "internal queues full"); - /* - * We'll synthesize a QUEUE FULL message below. - */ - } - if (sp->req_header.rqs_flags & RQSFLAG_BADHEADER) { - isp_print_qentry(isp, "bad header flag", - cptr, hp); buddaboom++; } - if (sp->req_header.rqs_flags & RQSFLAG_BADPACKET) { - isp_print_qentry(isp, "bad request packet", + if (sp->req_header.rqs_flags & RQSFLAG_BADPARAM) { + isp_print_qentry(isp, "invalid entry parameter", cptr, hp); buddaboom++; } @@ -3337,7 +3326,7 @@ isp_intr_respq(ispsoftc_t *isp) buddaboom++; } if (sp->req_header.rqs_flags & RQSFLAG_BADORDER) { - isp_print_qentry(isp, "invalid IOCB ordering", + isp_print_qentry(isp, "invalid entry order", cptr, hp); continue; } Modified: head/sys/dev/isp/ispmbox.h ============================================================================== --- head/sys/dev/isp/ispmbox.h Tue Nov 24 17:32:49 2020 (r367990) +++ head/sys/dev/isp/ispmbox.h Tue Nov 24 17:37:12 2020 (r367991) @@ -353,10 +353,8 @@ typedef struct { } isphdr_t; /* RQS Flag definitions */ -#define RQSFLAG_CONTINUATION 0x01 -#define RQSFLAG_FULL 0x02 -#define RQSFLAG_BADHEADER 0x04 -#define RQSFLAG_BADPACKET 0x08 +#define RQSFLAG_BADTYPE 0x04 +#define RQSFLAG_BADPARAM 0x08 #define RQSFLAG_BADCOUNT 0x10 #define RQSFLAG_BADORDER 0x20 #define RQSFLAG_MASK 0x3f _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"