virtio: remove unnecessary adapter structure
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 9 Feb 2015 01:13:56 +0000 (09:13 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 18:18:42 +0000 (19:18 +0100)
commitc7bca33e425a3b3739e2435b1f0e03d1ec96b0e6
tree3a619bdd8384fa3fcf1eb68bc281c244dad8fad8
parent8d6d7e5cb3b1e7441aaff46dc8f04aa0ac945d98
virtio: remove unnecessary adapter structure

Cleanup virtio code by eliminating unnecessary nesting of
virtio hardware structure inside adapter structure.
Also allows removing unneeded macro, making code clearer.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_pmd_virtio/virtio_ethdev.c
lib/librte_pmd_virtio/virtio_ethdev.h
lib/librte_pmd_virtio/virtio_rxtx.c