svn commit: r219883 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Tue Mar 22 21:05:56 UTC 2011


Author: np
Date: Tue Mar 22 21:05:56 2011
New Revision: 219883
URL: http://svn.freebsd.org/changeset/base/219883

Log:
  Fix an error while constructing the table that maps context id -> egress
  queue.
  
  MFC after:	1 day

Modified:
  head/sys/dev/cxgbe/t4_sge.c

Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c	Tue Mar 22 20:27:26 2011	(r219882)
+++ head/sys/dev/cxgbe/t4_sge.c	Tue Mar 22 21:05:56 2011	(r219883)
@@ -1134,7 +1134,7 @@ alloc_iq_fl(struct port_info *pi, struct
 		fl->cntxt_id = be16toh(c.fl0id);
 		fl->pidx = fl->cidx = 0;
 
-		cntxt_id = iq->cntxt_id - sc->sge.eq_start;
+		cntxt_id = fl->cntxt_id - sc->sge.eq_start;
 		KASSERT(cntxt_id < sc->sge.neq,
 		    ("%s: fl->cntxt_id (%d) more than the max (%d)", __func__,
 		    cntxt_id, sc->sge.neq - 1));


More information about the svn-src-all mailing list