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));
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to