Re: [dpdk-dev] [PATCH 14/40] net/virtio: pack virtio HW struct

2021-01-15 Thread Maxime Coquelin
On 1/6/21 10:58 AM, David Marchand wrote: > On Sun, Dec 20, 2020 at 10:15 PM Maxime Coquelin > wrote: >> >> This patch improves the virtio_hw struct packing, >> going from 88 down to 80 bytes with a 6 bytes hole in >> the end of the first cacheline. Fields only used in the >> slow path are plac

Re: [dpdk-dev] [PATCH 14/40] net/virtio: pack virtio HW struct

2021-01-06 Thread David Marchand
On Sun, Dec 20, 2020 at 10:15 PM Maxime Coquelin wrote: > > This patch improves the virtio_hw struct packing, > going from 88 down to 80 bytes with a 6 bytes hole in > the end of the first cacheline. Fields only used in the > slow path are placed in the end, so that hot path only > uses the first

Re: [dpdk-dev] [PATCH 14/40] net/virtio: pack virtio HW struct

2020-12-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Monday, December 21, 2020 5:14 AM > To: dev@dpdk.org; Xia, Chenbo ; olivier.m...@6wind.com; > amore...@redhat.com; david.march...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH 14/40] net/virtio: pack virtio HW struct > > This patc

[dpdk-dev] [PATCH 14/40] net/virtio: pack virtio HW struct

2020-12-20 Thread Maxime Coquelin
This patch improves the virtio_hw struct packing, going from 88 down to 80 bytes with a 6 bytes hole in the end of the first cacheline. Fields only used in the slow path are placed in the end, so that hot path only uses the first cacheline. Signed-off-by: Maxime Coquelin --- drivers/net/virtio/v