Re: [dpdk-dev] [PATCH v2 5/5] net/virtio: improve offload check performance

2018-06-07 Thread Maxime Coquelin
On 06/07/2018 06:51 AM, Tiwei Bie wrote: On Wed, Jun 06, 2018 at 02:31:28PM +0200, Maxime Coquelin wrote: Instead of checking the multiple Virtio features bits for every packet, let's do the check once at configure time and store it in virtio_hw struct. Signed-off-by: Maxime Coquelin --- [

Re: [dpdk-dev] [PATCH v2 5/5] net/virtio: improve offload check performance

2018-06-06 Thread Tiwei Bie
On Wed, Jun 06, 2018 at 02:31:28PM +0200, Maxime Coquelin wrote: > Instead of checking the multiple Virtio features bits for > every packet, let's do the check once at configure time and > store it in virtio_hw struct. > > Signed-off-by: Maxime Coquelin > --- [...] > @@ -270,8 +261,7 @@ virtqueue

[dpdk-dev] [PATCH v2 5/5] net/virtio: improve offload check performance

2018-06-06 Thread Maxime Coquelin
Instead of checking the multiple Virtio features bits for every packet, let's do the check once at configure time and store it in virtio_hw struct. Signed-off-by: Maxime Coquelin --- drivers/net/virtio/virtio_ethdev.c | 19 +++ drivers/net/virtio/virtio_pci.h| 3 +++ drivers