svn commit: r301898 - head/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Tue Jun 14 21:09:02 UTC 2016


Author: np
Date: Tue Jun 14 21:09:00 2016
New Revision: 301898
URL: https://svnweb.freebsd.org/changeset/base/301898

Log:
  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@)

Modified:
  head/sys/dev/cxgbe/tom/t4_cpl_io.c

Modified: head/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_cpl_io.c	Tue Jun 14 21:02:36 2016	(r301897)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c	Tue Jun 14 21:09:00 2016	(r301898)
@@ -1418,7 +1418,7 @@ do_rx_data(struct sge_iq *iq, const stru
 
 	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__));
 	}
 


More information about the svn-src-all mailing list