From patchwork Wed Aug 20 17:11:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 35709 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6222F2055D for ; Wed, 20 Aug 2014 17:12:01 +0000 (UTC) Received: by mail-oi0-f71.google.com with SMTP id e131sf43983016oig.10 for ; Wed, 20 Aug 2014 10:12:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=/zsvDwASXwO1JUmKpLTxIs4WgA3o9h9qX8I67czpA+8=; b=ERpOsio2Inu1/5kyirdQs6m7qHma/DEhPqH99pc0xfK0uKSXtdwRnZh+xWEWCU/jwR qxOvI9wB8ZV5KhDJga8arrH3fOL4z+nykMIhjt53Y1SNpmcziJXR63FSGyasaODHIyi9 61TPtlijRPFmXeLywtQpAkeUgRZdRMzgSBwnnzsxJ8BUdNCk3qzFx7K4WRBsZ3RG6HjA hliXmc0/wofO7IfVLEi8xufHcuYyiSLwIFu/kJYom80R8RBLds/45kdNujjg4V8V5em4 iL9rnQLo6wYVSo/ZPgmcBOgONTzvA+GNRNnIzCO3ME0tIABQ1HBZV8B37UIH99ZdkrN8 ZO/Q== X-Gm-Message-State: ALoCoQmRXcd05k5Az8/ar7IQAUPezcD5TU7xOk0Z8N1thdgrVeU9RV0VbZAJY/WYoAet/DoSLAuW X-Received: by 10.42.119.82 with SMTP id a18mr26728280icr.19.1408554720942; Wed, 20 Aug 2014 10:12:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.75 with SMTP id g69ls353863qgd.53.gmail; Wed, 20 Aug 2014 10:12:00 -0700 (PDT) X-Received: by 10.221.24.135 with SMTP id re7mr7753642vcb.53.1408554720746; Wed, 20 Aug 2014 10:12:00 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id ok9si4184376vcb.5.2014.08.20.10.12.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 10:12:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so9532405vcb.11 for ; Wed, 20 Aug 2014 10:12:00 -0700 (PDT) X-Received: by 10.221.5.137 with SMTP id og9mr37663533vcb.18.1408554720663; Wed, 20 Aug 2014 10:12:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp69775vcb; Wed, 20 Aug 2014 10:12:00 -0700 (PDT) X-Received: by 10.140.32.3 with SMTP id g3mr15183853qgg.13.1408554720232; Wed, 20 Aug 2014 10:12:00 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c9si28568734qaw.71.2014.08.20.10.11.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Aug 2014 10:12:00 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XK9QV-0002nd-2r; Wed, 20 Aug 2014 17:11:59 +0000 Received: from mail-la0-f42.google.com ([209.85.215.42]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XK9QI-0002mb-GQ for lng-odp@lists.linaro.org; Wed, 20 Aug 2014 17:11:46 +0000 Received: by mail-la0-f42.google.com with SMTP id pv20so7596926lab.15 for ; Wed, 20 Aug 2014 10:11:40 -0700 (PDT) X-Received: by 10.152.19.5 with SMTP id a5mr37229412lae.21.1408554700543; Wed, 20 Aug 2014 10:11:40 -0700 (PDT) Received: from sestofb10.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id dv6sm2008002lbc.32.2014.08.20.10.11.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Aug 2014 10:11:40 -0700 (PDT) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Wed, 20 Aug 2014 19:11:18 +0200 Message-Id: <1408554678-55317-5-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408554678-55317-1-git-send-email-ciprian.barbu@linaro.org> References: <1408554678-55317-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [APPS PATCH 4/4] utilities: Add option to start with ODP X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ciprian.barbu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Ciprian Barbu --- utilities/ovs-ctl.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in index 6d2e938..8914b58 100755 --- a/utilities/ovs-ctl.in +++ b/utilities/ovs-ctl.in @@ -240,7 +240,11 @@ start_forwarding () { fi # Start ovs-vswitchd. - set ovs-vswitchd unix:"$DB_SOCK" + if test X"$USE_ODP" != Xno; then + set ovs-vswitchd --odp -- unix:"$DB_SOCK" + else + set ovs-vswitchd unix:"$DB_SOCK" + fi set "$@" -vconsole:emer -vsyslog:err -vfile:info if test X"$MLOCKALL" != Xno; then set "$@" --mlockall @@ -529,6 +533,7 @@ set_defaults () { PROTOCOL=gre DPORT= SPORT= + USE_ODP=no type_file=$etcdir/system-type.conf version_file=$etcdir/system-version.conf