netdev: Initialise DPDK netdev classes only once
authorCiara Loftus <ciara.loftus@intel.com>
Tue, 17 May 2016 13:28:38 +0000 (14:28 +0100)
committerBen Pfaff <blp@ovn.org>
Wed, 18 May 2016 02:15:08 +0000 (19:15 -0700)
DPDK netdev classes were being initialised twice, resulting in warning
logs like so:

netdev|WARN|attempted to register duplicate netdev provider: dpdk

This commit removes one of the initialisation calls.

Fixes: 0692257923fe ("netdev: Fix potential deadlock.")
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev.c

index 4f5724e..a678688 100644 (file)
@@ -149,7 +149,6 @@ netdev_initialize(void)
         netdev_register_provider(&netdev_internal_class);
         netdev_vport_tunnel_register();
 #endif
-        netdev_dpdk_register();
         ovsthread_once_done(&once);
     }
 }