While it is worth clarifying whether the fake mbuf
in virtnet_rx struct is really necessary, it is sure
that it heavily impacts cache usage by being part of
the struct. Indeed, it uses two cachelines, and
requires alignement on a cacheline.
Before this series, it means it took 120 bytes in
virtnet
On Mon, Mar 15, 2021 at 4:20 PM Maxime Coquelin
wrote:
> @@ -550,10 +551,18 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t
> queue_idx)
> goto free_hdr_mz;
> }
>
> + fake_mbuf = malloc(sizeof(*fake_mbuf));
> + if (!fake_m
On 3/15/21 4:50 PM, David Marchand wrote:
> On Mon, Mar 15, 2021 at 4:20 PM Maxime Coquelin
> wrote:
>> @@ -550,10 +551,18 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t
>> queue_idx)
>> goto free_hdr_mz;
>> }
>>
>> + fake_mbuf = ma
3 matches
Mail list logo