Date: Mon, 29 Jun 2009 18:17:10 +0000 (UTC) From: Jack F Vogel <jfv@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r195168 - head/sys/dev/e1000 Message-ID: <200906291817.n5TIHADD051903@svn.freebsd.org>
index | next in thread | raw e-mail
Author: jfv Date: Mon Jun 29 18:17:10 2009 New Revision: 195168 URL: http://svn.freebsd.org/changeset/base/195168 Log: Type problem when FreeBSD is in a virtualized environment, the result was when the RX index wrapped it was converted into some sort of gibberish and written into the RDT register, effectively killing the RX side of the thing :) Approved by: re Modified: head/sys/dev/e1000/if_em.c Modified: head/sys/dev/e1000/if_em.c ============================================================================== --- head/sys/dev/e1000/if_em.c Mon Jun 29 18:12:11 2009 (r195167) +++ head/sys/dev/e1000/if_em.c Mon Jun 29 18:17:10 2009 (r195168) @@ -4446,7 +4446,7 @@ em_rxeof(struct adapter *adapter, int co struct mbuf *mp; u8 status, accept_frame = 0, eop = 0; u16 len, desc_len, prev_len_adj; - u32 i, rx_sent = 0; + int i, rx_sent = 0; struct e1000_rx_desc *current_desc; EM_RX_LOCK(adapter);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906291817.n5TIHADD051903>
