Author: jfv Date: Tue Sep 7 21:28:45 2010 New Revision: 212304 URL: http://svn.freebsd.org/changeset/base/212304
Log: Code correction in refresh_mbufs, just continuing without index recalc was wrong. Modified: head/sys/dev/e1000/if_em.c Modified: head/sys/dev/e1000/if_em.c ============================================================================== --- head/sys/dev/e1000/if_em.c Tue Sep 7 20:13:08 2010 (r212303) +++ head/sys/dev/e1000/if_em.c Tue Sep 7 21:28:45 2010 (r212304) @@ -3696,7 +3696,7 @@ em_refresh_mbufs(struct rx_ring *rxr, in ** and are to be reused. */ if (rxbuf->m_head != NULL) - continue; + goto reuse; m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR); /* ** If we have a temporary resource shortage @@ -3726,7 +3726,7 @@ em_refresh_mbufs(struct rx_ring *rxr, in rxbuf->map, BUS_DMASYNC_PREREAD); rxbuf->m_head = m; rxr->rx_base[i].buffer_addr = htole64(segs[0].ds_addr); - +reuse: cleaned = i; /* Calculate next index */ if (++i == adapter->num_rx_desc) _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"