From a2946b6b1bdf5a72a06318c373c242c7d9741460 Mon Sep 17 00:00:00 2001 From: np Date: Tue, 14 Jun 2016 21:09:00 +0000 Subject: [PATCH] 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@) --- sys/dev/cxgbe/tom/t4_cpl_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__)); }