qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V4 07/12] net/colo.c: Make vnet_hdr_len as packe


From: Zhang Chen
Subject: Re: [Qemu-devel] [PATCH V4 07/12] net/colo.c: Make vnet_hdr_len as packet property
Date: Tue, 23 May 2017 19:59:24 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0



On 05/15/2017 04:18 PM, Jason Wang wrote:


On 2017年05月15日 16:03, Zhang Chen wrote:


On 05/15/2017 12:05 PM, Jason Wang wrote:


On 2017年05月12日 09:41, Zhang Chen wrote:
We can use this property flush and send packet with vnet_hdr_len.

Signed-off-by: Zhang Chen <address@hidden>

Then I think it's not necessary to store vnet_hdr_len in SocketReadState?

Do you means we keep the patch 05/12 in original?

Thanks
Zhang Chen


I mean we could fetch vnet_hdr_len from the buf directly. Or is there any advantage to store it in SocketReadState?

No, The rs->buf did't have the vnet_hdr_len field.
In the net_fill_rstate(), when case = 2, we override the rs->buf by real net packet data, So, the vnet_hdr_len field and packet_len field didn't be include in the last rs->buf.

Thanks
Zhang Chen


Thanks





--
Thanks
Zhang Chen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]