virtio: fix 32-bit build for 64-bit kernel
authorVijayakumar Muthuvel Manickam <mmvijay@gmail.com>
Fri, 18 Jul 2014 10:53:48 +0000 (03:53 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 22 Jul 2014 13:00:00 +0000 (15:00 +0200)
commit3ed4e9735aea345746ab243d25f8a4897a480a3c
tree4304d35c569ca4a6323f4b8c5196264efa5e8435
parent4d6d8babac6f1e1349d934eb3e1b15950822adbb
virtio: fix 32-bit build for 64-bit kernel

virtio_net_hdr_mem member within virtqueue structure stores a
physical address and is defined as void ptr. When 32bit pmd is used
with 64bit kernel this leads to truncation of 64bit physical address
and pkt i/o does not work.
Changed virtio_net_hdr_mem to phys_addr_t type and
removed the typecasts

Signed-off-by: Vijayakumar Muthuvel Manickam <mmvijay@gmail.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_virtio/virtio_ethdev.c
lib/librte_pmd_virtio/virtqueue.h