virtio: rearrange resource initialization
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 9 Feb 2015 01:13:50 +0000 (09:13 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 18:17:45 +0000 (19:17 +0100)
commit41d7fcf5e3ee0285021167dd4f10fcafc5b916ec
tree01e3f099d004652548bc29bfb3cbcb961ed8d87e
parent3c2100485570c11859ecd39676100645f24278a7
virtio: rearrange resource initialization

For clarity make the setup of PCI resources for Linux into a function rather
than block of code #ifdef'd in middle of dev_init.

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