aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2016-06-14 21:09:00 +0000
committerNavdeep Parhar <np@FreeBSD.org>2016-06-14 21:09:00 +0000
commitc4765d2743ad69136ed35c6f9f8bbfd4854434b4 (patch)
treeaaf77e9301b43666a39b03cffd10052e43a8b91b
parent390006c70fd224b1b0c6f01abf06a082a022a38d (diff)
downloadsrc-c4765d2743ad69136ed35c6f9f8bbfd4854434b4.tar.gz
src-c4765d2743ad69136ed35c6f9f8bbfd4854434b4.zip
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@)
Notes
Notes: svn path=/head/; revision=301898
-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 7f8525051e29..fd83ca15f8c2 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__));
}