netdev-dpdk: Refactor dpdk_class_init()
authorDaniele Di Proietto <ddiproietto@vmware.com>
Thu, 17 Jul 2014 00:10:59 +0000 (17:10 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 17 Jul 2014 18:16:32 +0000 (11:16 -0700)
commit033e9df25fd3828959e332caf086706e91111a55
tree1d7b7d1f932ebdaae4beb1bcaebf4e7681dcab9d
parenta413195ecede139380166065bf42699b3c002acd
netdev-dpdk: Refactor dpdk_class_init()

The following changes were made:

- Since we have two dpdk classes, we should split the initial operations needed
  by both classes from the initialization needed by each class.
- The dpdk_ring class does not need an initialization function: it has been
  removed. This also prevents many testcase from failing, because
  dpdk_ring_class_init() was printing an unexpected log message
  (OVS_VSWITCHD_START at tests/ofproto-macros.at:54 check for a specific set of
  startup log messages)
- If the user doesn't pass the --dpdk option we do not register the dpdk*
  classes
- Do not call VLOG_ERR if there are 0 dpdk ethernet device. OVS can now be used
  with dpdk_ring devices.

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-dpdk.c