Re: [Qemu-devel] [PATCH] net: add drop_packets parameter to -net nic

2011-04-25 Thread Nguyen Thai Ngoc Duy
2011/4/25 Stefan Hajnoczi : > 2011/4/25 Nguyễn Thái Ngọc Duy : >> Dropping packets is sometimes perferred behavior. Add drop_packets >> parameter to NICConf struct and let nic simulation decide how to use >> it. >> >> Only e1000 supports this for now. >> >> Signed-off-by: Nguyễn Thái Ngọc Duy >> -

Re: [Qemu-devel] [PATCH] net: add drop_packets parameter to -net nic

2011-04-26 Thread Nguyen Thai Ngoc Duy
On Tue, Apr 26, 2011 at 4:14 PM, Stefan Hajnoczi wrote: > The behavior you are describing sounds like a bug in QEMU's network > layer.  If RX is disabled we should not queue incoming packets. > > Have you looked into fixing QEMU so that the queue is disabled when RX > is disabled? it's in e1000_c

Re: [Qemu-devel] [PATCH] net/socket: remove hardcoded packet size in favor of new mtu parameter

2011-05-15 Thread Nguyen Thai Ngoc Duy
2011/5/16 Michael S. Tsirkin : > On Fri, Apr 22, 2011 at 07:59:28PM +0700, Nguyễn Thái Ngọc Duy wrote: >> Also mention the default value 4096. >> >> Signed-off-by: Nguyễn Thái Ngọc Duy > > IS the option really necessary? Why not just allocate 128K or so and be > done with it? That should be big en