Skip to contentSkip to conversation

: Fix ne2k

PATCH New Christoph Egger 1 participant 1 message Mar 28, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Fix ne2k

Hi!

Attached patch is a backport from qemu upstream:

-------------------
revision 1.24
date: 2007-04-02 08:19:57 +0000; author: ths; state: Exp; lines: +1 -1; ne2k buffer full bug fix, by Marcel Block.
-------------------

The patch improves network throughput since otherwise the emulated NICs don't have a way of indicating the receive queue is full and would drop packets.

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
tools/ioemu/hw/ne2000.c +1 -1
diff -r e7abfeee2808 tools/ioemu/hw/ne2000.c
@@ -207,7 +207,7 @@ static int ne2000_buffer_full(NE2000Stat
 
     index = s->curpag << 8;
     boundary = s->boundary << 8;
-    if (index <= boundary)
+    if (index < boundary)
         avail = boundary - index;
     else
         avail = (s->stop - s->start) - (index - boundary);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel