> +            offset = colo_bitmap_find_dirty(ram_state, block, offset,
> + &num);
IIUC, this return value would pass to the next round as start index,  so you 
should skip the already checked one.


Thanks


On 3/12/21 5:56 PM, Rao, Lei wrote:
> How about redefine a function named packet_new_nocopy?
> In comments, we can tell the caller don't release the buffer and the 
> packet_destroy will release it.
>
> Thanks,
> Lei.
> -----Original Message-----
> From:[email protected]  <[email protected]>  
> Sent: Friday, March 12, 2021 2:53 PM
> To: Rao, Lei<[email protected]>; Zhang, 
> Chen<[email protected]>;[email protected];[email protected];[email protected];[email protected];[email protected]
> Cc:[email protected]
> Subject: Re: [PATCH v2 05/10] Optimize the function of packet_new
>
>

Reply via email to