vhost: fix packed ring dequeue offloading
authorMarvin Liu <yong.liu@intel.com>
Fri, 5 Feb 2021 07:47:58 +0000 (15:47 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Feb 2021 21:17:47 +0000 (22:17 +0100)
commit894028ace2c5af2506897898f407cbdf24cef0c5
tree191a52d449a284d3204006dfd0e9105fdad7f79d
parentb9c366e029f5710718006e95eec8f133ad5782a4
vhost: fix packed ring dequeue offloading

When vhost is doing dequeue offloading, it parses ethernet and L3/L4
headers of the packet. Then vhost will set corresponding value in mbuf
attributes. It means offloading action should be after packet data copy.

Fixes: 75ed51697820 ("vhost: add packed ring batch dequeue")
Cc: stable@dpdk.org
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c