[Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1. Reviewed-off-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/hub.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff

Re: [Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-26 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 8:13 PM, Stefan Hajnoczi wrote: > On Fri, May 25, 2012 at 06:52:14PM +0800, zwu.ker...@gmail.com wrote: >> @@ -59,16 +60,16 @@ static ssize_t net_hub_receive_iov(NetHub *hub, >> NetHubPort *source_port, >>                                     const struct iovec *iov, int io

Re: [Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Stefan Hajnoczi
On Fri, May 25, 2012 at 06:52:14PM +0800, zwu.ker...@gmail.com wrote: > @@ -59,16 +60,16 @@ static ssize_t net_hub_receive_iov(NetHub *hub, > NetHubPort *source_port, > const struct iovec *iov, int iovcnt) > { > NetHubPort *port; > -ssize_t ret = 0; >

Re: [Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 7:05 PM, Paolo Bonzini wrote: > Il 25/05/2012 12:52, zwu.ker...@gmail.com ha scritto: >> From: Zhi Yong Wu >> >> Only when all other hub port's *peer* .can_receive() all return 1, the >> source hub port .can_receive() return 1. >> >> Signed-off-by: Zhi Yong Wu >> --- >>

Re: [Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 12:52, zwu.ker...@gmail.com ha scritto: > From: Zhi Yong Wu > > Only when all other hub port's *peer* .can_receive() all return 1, the source > hub port .can_receive() return 1. > > Signed-off-by: Zhi Yong Wu > --- > net/hub.c | 27 --- > 1 files change

[Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread zwu . kernel
From: Zhi Yong Wu Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1. Signed-off-by: Zhi Yong Wu --- net/hub.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/net/hub.c b/net/hub.c