Re: [dpdk-dev] [PATCH 2/2] net/virtio: optimize header reset on any layout

2017-01-11 Thread Maxime Coquelin
On 01/11/2017 05:27 AM, Yuanhan Liu wrote: When any layout is used, the header is stored in the head room of mbuf. mbuf is allocated and filled by user, means there is no gurateen the header is all zero for non TSO case. Therefore, we have to do the reset by ourself: memest(hdr, 0, head_si

[dpdk-dev] [PATCH 2/2] net/virtio: optimize header reset on any layout

2017-01-10 Thread Yuanhan Liu
When any layout is used, the header is stored in the head room of mbuf. mbuf is allocated and filled by user, means there is no gurateen the header is all zero for non TSO case. Therefore, we have to do the reset by ourself: memest(hdr, 0, head_size); The memset has two impacts on performance