virtio: use zeroed memory for simple Tx header
authorRich Lane <rich.lane@bigswitch.com>
Tue, 5 Apr 2016 02:11:01 +0000 (19:11 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 6 Apr 2016 10:27:57 +0000 (12:27 +0200)
commit610e0a8b628bd33ee8276da8d7dc36b970d9b73e
tree746d9fc1a668bd1a16dd561ead302f4e1d4898b7
parent71dc571efd0a930ebb7334260059e87711fdfc27
virtio: use zeroed memory for simple Tx header

For simple TX the virtio-net header must be zeroed, but it was using memory
that had been initialized with indirect descriptor tables. This resulted in
"unsupported gso type" errors from librte_vhost.

We can use the same memory for every descriptor to save cachelines in the
vswitch.

Fixes: 6dc5de3a ("virtio: use indirect ring elements")

Signed-off-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
drivers/net/virtio/virtio_rxtx.c