vhost: make virtio header length per device
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sun, 1 May 2016 23:58:52 +0000 (07:58 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 07:44:20 +0000 (09:44 +0200)
commite197bd630a5cd3ed40e73f914837a03e2c6b3098
tree4c8002dd664873011b1d1c95551c16f514ac2068
parent004b8ca8b5282b65233e839d6dc0ea8823026c7f
vhost: make virtio header length per device

Virtio net header length is set per device, but not per queue. So, there
is no reason to store it in vhost_virtqueue struct, instead, we should
store it in virtio_net struct, to make one copy only.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
lib/librte_vhost/vhost-net.h
lib/librte_vhost/vhost_rxtx.c
lib/librte_vhost/virtio-net.c