From: Rory Sexton <rory.sex...@intel.com> The sole purpose of the netdev_dpdk's init function is to invoke rte_eal_pci_probe; as of DPDK 1.8, this function is implicitly invoked by rte_eal_init, removing the need to call it explicitly.
Signed-off-by: Rory Sexton <rory.sex...@intel.com> Signed-off-by: Stephen Finucane <stephen.finuc...@intel.com> Reviewed-By: Stephen Finucane <stephen.finuc...@intel.com> Reviewed-By: Ciara Loftus <ciara.lof...@intel.com> Signed-off-by: Mark Kavanagh <mark.b.kavan...@intel.com> --- lib/netdev-dpdk.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 9ac49c8..9c42756 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1270,22 +1270,6 @@ dpdk_common_init(void) ovs_thread_create("dpdk_watchdog", dpdk_watchdog, NULL); } -static int -dpdk_class_init(void) -{ - int result; - - result = rte_eal_pci_probe(); - if (result) { - VLOG_ERR("Cannot probe PCI"); - return -result; - } - - VLOG_INFO("Ethernet Device Count: %d", (int)rte_eth_dev_count()); - - return 0; -} - /* Client Rings */ static int @@ -1510,7 +1494,7 @@ dpdk_init(int argc, char **argv) const struct netdev_class dpdk_class = NETDEV_DPDK_CLASS( "dpdk", - dpdk_class_init, + NULL, netdev_dpdk_construct, netdev_dpdk_set_multiq, netdev_dpdk_eth_send); -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev