eal: set iopl only when needed
authorDavid Marchand <david.marchand@6wind.com>
Tue, 26 Aug 2014 14:11:39 +0000 (16:11 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 29 Sep 2014 12:39:09 +0000 (14:39 +0200)
commit565b85dcd9f48e47e7607086dddaa34f8b3c0b1c
treeb03be969b12252dc24860de43827e2b4e10f275c
parent8a312224bcdeb45a36685b7c517c12d00683b24d
eal: set iopl only when needed

There is no need for ioport access for applications that won't use virtio pmds.
Make rte_eal_iopl_init() non-static so that it is called from pmds that need it.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/include/rte_eal.h
lib/librte_eal/linuxapp/eal/eal.c
lib/librte_pmd_virtio/virtio_ethdev.c