virtio: fix descriptors pointing to the same buffer
authorHuawei Xie <huawei.xie@intel.com>
Thu, 10 Dec 2015 16:07:32 +0000 (00:07 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:52:18 +0000 (18:52 +0100)
commit3b1e3e4e362453df8cecbc6d481444be8b84326e
tree7841de9dfbf01e780057097d3379968d14162a8a
parentc680a4a88c4312068f60937a7ba51eac8211c9a6
virtio: fix descriptors pointing to the same buffer

The virtio_net_hdr desc all pointed to the same buffer. It doesn't cause
issue because in the simple TX mode we don't use the header. This patch
makes the header desc point to different buffer.

Fixes: b4ae9c505f2e ("virtio: optimize ring layout")

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_rxtx.c