|Subject:||Re: [Qemu-devel] Re: qemu/rtl8139: Max transmit frame size|
|Date:||Fri, 22 Dec 2006 02:11:48 +0300|
On Wed, Nov 15, 2006 at 03:38:27PM +1100, herbert wrote:
> CP_TX_BUFFER_SIZE is already 64K. So it seems to me that we don't need
> the while loop to extend the buffer at all since no transmitted packet
> should be anywhere near this size.
> Are there any objections to getting rid of the following while loop
> altogether and replacing it with a straight failure?
Since I haven't heard any objections, here is a patch to do just that.
[QEMU] rtl8139: Disallow chaining above 64K
As it stands the 8139C+ TX chaining is only bounded by realloc failure.
This is contrary to how the real hardware operates. It also has DoS
potential when ioemu runs in dom0.
This patch makes any attempt to chain a frame beyond 64K fail immediately.
|[Prev in Thread]||Current Thread||[Next in Thread]|