[dpdk-dev] [PATCH 2/3] vhost: optimize dequeue for small packets

Xie, Huawei huawei.xie at intel.com
Fri Jun 3 09:43:28 CEST 2016


On 5/3/2016 8:42 AM, Yuanhan Liu wrote:
> Both current kernel virtio driver and DPDK virtio driver use at least
> 2 desc buffer for Tx: the first for storing the header, and the others
> for storing the data.
>
> Therefore, we could fetch the first data desc buf before the main loop,
> and do the copy first before the check of "are we done yet?". This
> could save one check for small packets, that just have one data desc
> buffer and need one mbuf to store it.
>
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>

Acked-by: Huawei Xie <huawei.xie at intel.com>






More information about the dev mailing list