vhost: use fixed virtio-net header length packed ring
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 1 Oct 2020 10:11:55 +0000 (12:11 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:18:47 +0000 (19:18 +0200)
commit77888192967c7cfbbdc6836e712660e967a912c6
tree16a57df839e0c29a2fc5db9e9457ab20159d165d
parent22eaf2613537ba6b0e79f656195eeeaa3dd14666
vhost: use fixed virtio-net header length packed ring

This small optimization uses the static the Virtio-net
header len in packed datapath, since Virtio-net header
cannot be the legacy one in case of packed ring.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/virtio_net.c