virtio: rearrange resource initialization
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 <06fa905d7f2aaced6dc72e9511c71a2a51e8aead@networkplumber.org>
Signed-off-by: Changchun Ouyang <593bf1f161e79772915ea885e47cf0e95f4498c0@intel.com>
Acked-by: Huawei Xie <3b3be4428106761300a2ee559c9f71ecdb091553@intel.com>

tsphillips/dpdk-fork,venkynv/dpdk-mirror,msune/dpdk,venkynv/dpdk-mirror,tsphillips/dpdk-fork,john-mcnamara-intel/dpdk,tsphillips/dpdk-fork,mixja/dpdk,msune/dpdk,john-mcnamara-intel/dpdk,venkynv/dpdk-mirror,mixja/dpdk,msune/dpdk,john-mcnamara-intel/dpdk,mixja/dpdk,mixja/dpdk,venkynv/dpdk-mirror,msune/dpdk,john-mcnamara-intel/dpdk,tsphillips/dpdk-fork