net/virtio: improve offload check performance
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 2 Jul 2018 15:25:47 +0000 (17:25 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 4 Jul 2018 15:03:48 +0000 (17:03 +0200)
commitdb8d6790590de1fc7f3a4b0a6c958bd07fccef19
treedac61da36e123997f965119e1c51a979f2159292
parent2f901132510787c4aaf082e89491422ccdc8c692
net/virtio: improve offload check performance

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 <maxime.coquelin@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.h
drivers/net/virtio/virtio_rxtx.c