summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2016-06-14 21:09:00 +0000
committernp <np@FreeBSD.org>2016-06-14 21:09:00 +0000
commita2946b6b1bdf5a72a06318c373c242c7d9741460 (patch)
treeaaf77e9301b43666a39b03cffd10052e43a8b91b
parent7faa4a7b6d16b2791b832e9133ca24e4c37b22f5 (diff)
downloadFreeBSD-src-a2946b6b1bdf5a72a06318c373c242c7d9741460.zip
FreeBSD-src-a2946b6b1bdf5a72a06318c373c242c7d9741460.tar.gz
cxgbe/t4_tom: Fix inverted assertion in r300895. It is RDMA
connections and not others that are allowed to fail the receive window check. Approved by: re (gjb@)
-rw-r--r--sys/dev/cxgbe/tom/t4_cpl_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/tom/t4_cpl_io.c b/sys/dev/cxgbe/tom/t4_cpl_io.c
index 7f85250..fd83ca1 100644
--- a/sys/dev/cxgbe/tom/t4_cpl_io.c
+++ b/sys/dev/cxgbe/tom/t4_cpl_io.c
@@ -1418,7 +1418,7 @@ do_rx_data(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
tp->rcv_nxt += len;
if (tp->rcv_wnd < len) {
- KASSERT(toep->ulp_mode != ULP_MODE_RDMA,
+ KASSERT(toep->ulp_mode == ULP_MODE_RDMA,
("%s: negative window size", __func__));
}
OpenPOWER on IntegriCloud