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
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
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;
>
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
>> ---
>>
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
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