diff options
author | Aaron Conole <aconole@redhat.com> | 2016-04-29 13:44:04 -0400 |
---|---|---|
committer | Daniele Di Proietto <diproiettod@vmware.com> | 2016-04-29 15:07:39 -0700 |
commit | eac84432a4785b9353071ffa74daa48dc29ad0b3 (patch) | |
tree | 52f61bf980fc11018b57508b8fd7c8301e550c58 /utilities | |
parent | 88964e6428dc71cdc7eeb5ab913bc1a14f39c7ec (diff) | |
download | openvswitch-eac84432a4785b9353071ffa74daa48dc29ad0b3.tar.gz |
netdev-dpdk: Allow arbitrary eal arguments
A previous change moved some commonly used arguments from commandline to
the database, and with it the ability to pass arbitrary arguments to
EAL. This change allows arbitrary eal arguments to be provided
via a new db entry 'other_config:dpdk-extra' which will tokenize the
string and add it to the argument list. The only argument which will not
be supported with this change is '--no-huge', which appears to break the
system in other ways.
Signed-off-by: Aaron Conole <aconole@redhat.com>
Tested-by: Sean K Mooney <sean.k.mooney@intel.com>
Tested-by: RobertX Wojciechowicz <robertx.wojciechowicz@intel.com>
Tested-by: Kevin Traynor <kevin.traynor@intel.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Kevin Traynor <kevin.traynor@intel.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
Diffstat (limited to 'utilities')
-rwxr-xr-x | utilities/ovs-dev.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index a74b528b1..524f574ff 100755 --- a/utilities/ovs-dev.py +++ b/utilities/ovs-dev.py @@ -267,6 +267,8 @@ def run(): if options.dpdk: _sh("ovs-vsctl --no-wait set Open_vSwitch %s " \ "other_config:dpdk-init=true" % root_uuid) + _sh("ovs-vsctl --no-wait set Open_vSwitch %s other_config:" \ + "dpdk-extra=\"%s\"" % (root_uuid, ' '.join(options.dpdk))) else: _sh("ovs-vsctl --no-wait set Open_vSwitch %s " \ "other_config:dpdk-init=false" % root_uuid) @@ -423,8 +425,9 @@ def main(): help="run ovs-vswitchd under gdb") group.add_option("--valgrind", dest="valgrind", action="store_true", help="run ovs-vswitchd under valgrind") - group.add_option("--dpdk", dest="dpdk", action="store_true", - help="run ovs-vswitchd with dpdk") + group.add_option("--dpdk", dest="dpdk", action="callback", + callback=parse_subargs, + help="run ovs-vswitchd with dpdk subopts (ended by --)") group.add_option("--clang", dest="clang", action="store_true", help="Use binaries built by clang") group.add_option("--user", dest="user", action="store", default="", |