[dpdk-dev] [PATCH v3 0/4] net/virtio: make virtqueue struct cache-friendly

David Marchand david.marchand at redhat.com
Mon Mar 15 17:59:10 CET 2021


On Mon, Mar 15, 2021 at 5:46 PM Maxime Coquelin
<maxime.coquelin at redhat.com> wrote:
>
> This series optimizes the cache usage of virtqueue struct,
> by making a "fake" mbuf being dynamically allocated in Rx
> virtnet struct, by removing a useless virtuque pointer
> into the virtnet structs and by moving a few fields
> to pack holes.
>
> With these 3 patches, the virtqueue struct size goes from
> 576 bytes (9 cachelines) to 248 bytes (4 cachelines).
>
> Changes in v3:
> ==============
> - Use rte_zmalloc_socket for fake mbuf alloc (David)
> - Fix typos in commit messages
> - Remove superfluous pointer check befor freeing (David)
> - Fix checkpatch warnings

Once fixed patch 3, you can add for the series,
Reviewed-by: David Marchand <david.marchand at redhat.com>


-- 
David Marchand



More information about the dev mailing list