netdev-dpdk: Convert initialization from cmdline to db
authorAaron Conole <aconole@redhat.com>
Fri, 29 Apr 2016 17:44:01 +0000 (13:44 -0400)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 29 Apr 2016 22:07:39 +0000 (15:07 -0700)
commitbab6940971336510c1f4342cde0bc17da46b99f1
tree1978f936db9c59f46497e8c3220ae9ab8bc94a05
parent563c98d86e77ba0345661e212137906747958db1
netdev-dpdk: Convert initialization from cmdline to db

Existing DPDK integration is provided by use of command line options which
must be split out and passed to librte in a special manner. However, this
forces any configuration to be passed by way of a special DPDK flag, and
interferes with ovs+dpdk packaging solutions.

This commit delays dpdk initialization until after the OVS database
connection is established, at which point ovs initializes librte. It
pulls all of the config data from the OVS database, and assembles a
new argv/argc pair to be passed along.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Kevin Traynor <kevin.traynor@intel.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
14 files changed:
FAQ.md
INSTALL.DPDK.md
NEWS
lib/automake.mk
lib/netdev-dpdk.c
lib/netdev-dpdk.h
lib/netdev-nodpdk.c [new file with mode: 0644]
lib/netdev.c
tests/ofproto-macros.at
utilities/ovs-dev.py
vswitchd/bridge.c
vswitchd/ovs-vswitchd.8.in
vswitchd/ovs-vswitchd.c
vswitchd/vswitch.xml