summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2009-06-29 18:17:10 +0000
committerjfv <jfv@FreeBSD.org>2009-06-29 18:17:10 +0000
commita0406a12532b60a577e09907c61942649ac1c59f (patch)
treea4d4aed79c3dd82d69bf40433a68e45074b678bb
parent242d1f11afe79e3633bfd335f3eb01bdb4ff667c (diff)
downloadFreeBSD-src-a0406a12532b60a577e09907c61942649ac1c59f.zip
FreeBSD-src-a0406a12532b60a577e09907c61942649ac1c59f.tar.gz
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
-rw-r--r--sys/dev/e1000/if_em.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index 14d82f0..8890297 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -4446,7 +4446,7 @@ em_rxeof(struct adapter *adapter, int count)
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);
OpenPOWER on IntegriCloud