svn commit: r195168 - head/sys/dev/e1000

Jack F Vogel jfv at FreeBSD.org
Mon Jun 29 18:17:10 UTC 2009


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);


More information about the svn-src-all mailing list