Skip to content

Instantly share code, notes, and snippets.

@goodell
Created May 11, 2016 15:59
Show Gist options
  • Save goodell/9e6e586b1bdf4cb2ac6f1a7ccff77349 to your computer and use it in GitHub Desktop.
Save goodell/9e6e586b1bdf4cb2ac6f1a7ccff77349 to your computer and use it in GitHub Desktop.
for_ioannis
diff --git a/prov/usnic/src/usdf_cq.c b/prov/usnic/src/usdf_cq.c
index ba4cef4..a2ad994 100644
--- a/prov/usnic/src/usdf_cq.c
+++ b/prov/usnic/src/usdf_cq.c
@@ -455,8 +455,10 @@ usdf_cq_post_soft(struct usdf_cq_hard *hcq, void *context, size_t len,
* for.
*/
if ((entry == cq->c.soft.cq_tail) &&
- (cq->c.soft.cq_last_op == USDF_SOFT_CQ_WRITE))
+ (cq->c.soft.cq_last_op == USDF_SOFT_CQ_WRITE)) {
+ USDF_WARN_SYS(EP_DATA, "CQ overrun!!!\n");
return;
+ }
entry->cse_context = context;
entry->cse_len = len;
diff --git a/prov/usnic/src/usdf_eq.c b/prov/usnic/src/usdf_eq.c
index 52cb216..e260aa4 100644
--- a/prov/usnic/src/usdf_eq.c
+++ b/prov/usnic/src/usdf_eq.c
@@ -224,7 +224,8 @@ static ssize_t usdf_eq_read(struct fid_eq *feq, uint32_t *event, void *buf,
{
struct usdf_eq *eq;
- USDF_DBG_SYS(EQ, "\n");
+ // XXX DJG too much spam!
+ //USDF_DBG_SYS(EQ, "\n");
eq = eq_ftou(feq);
diff --git a/prov/usnic/src/usdf_msg.c b/prov/usnic/src/usdf_msg.c
index c5cdc87..9e34170 100644
--- a/prov/usnic/src/usdf_msg.c
+++ b/prov/usnic/src/usdf_msg.c
@@ -1216,6 +1216,7 @@ usdf_msg_handle_recv(struct usdf_domain *udp, struct usd_completion *comp)
rqe = ep->e.msg.ep_cur_recv;
if (rqe == NULL) {
if (TAILQ_EMPTY(&rx->r.msg.rx_posted_rqe)) {
+ USDF_WARN_SYS(EP_DATA, "RX overrun!!!\n");
goto dropit;
}
rqe = TAILQ_FIRST(&rx->r.msg.rx_posted_rqe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment