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: add drop_packets parameter to -net nic

2011-04-26 Thread Stefan Hajnoczi
On Mon, Apr 25, 2011 at 3:06 PM, Nguyen Thai Ngoc Duy wrote: > 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

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-25 Thread Anthony Liguori
On 04/25/2011 08:40 AM, Stefan Hajnoczi wrote: 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-25 Thread 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 > --- >  Documentation is missing, but I'

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

2011-04-24 Thread 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 --- Documentation is missing, but I'm not even sure if there's any other user who fi