From patchwork Thu Jan 22 16:11:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 43532 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3C716240DB for ; Thu, 22 Jan 2015 16:11:57 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id q59sf1558330wes.1 for ; Thu, 22 Jan 2015 08:11:56 -0800 (PST) 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:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Cb3qpqX2nybJjocqBkgR84dIczuvH/7U77UQ4eB9Kzo=; b=G5QL3yKQIaWmQtnj9o4nICX/MxyTLi0NlfY8vP7un1bqmHPKFhY9em37ip1phuV3ht DLJxM+XZ8rLd233I3i8VBzAN5ov9a9gXvKBqQjMffjK5kuea2gVxb5a2Nb7qYwPvagXR +vs3D0oY00TT2ilG+vS1L3DcqM0ACJ+yyBoQI5feoJImsYB4Xdzd8eM+ok65qt//VIrF +FOhTn07iTgtZQ3wAWxHa7TXODOyMRHc1acw8gvE37kzndaU8kfv5bUFB5DvMGVzjLZ6 jRWhY0VJ+F/UsHaGVZqXmcoLQrk4REGrK24qBKMKTcqlpwB9MajNdQ9Zwcs/RJ9E8rdC 2QOQ== X-Gm-Message-State: ALoCoQlNCeJ4yRDhfh8dx7h8m6g5GhArNfoIc5fszCA5lH+fVgGyzWDyO8GqDqQV/Y2MAUYQSzij X-Received: by 10.180.84.7 with SMTP id u7mr512128wiy.0.1421943116495; Thu, 22 Jan 2015 08:11:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.97 with SMTP id z1ls189508laz.35.gmail; Thu, 22 Jan 2015 08:11:56 -0800 (PST) X-Received: by 10.112.130.65 with SMTP id oc1mr2581968lbb.7.1421943116259; Thu, 22 Jan 2015 08:11:56 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id eq4si22480697lac.84.2015.01.22.08.11.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 08:11:56 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id u14so2400759lbd.2 for ; Thu, 22 Jan 2015 08:11:56 -0800 (PST) X-Received: by 10.112.26.135 with SMTP id l7mr2567722lbg.56.1421943116177; Thu, 22 Jan 2015 08:11:56 -0800 (PST) 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.112.9.200 with SMTP id c8csp312617lbb; Thu, 22 Jan 2015 08:11:55 -0800 (PST) X-Received: by 10.224.46.8 with SMTP id h8mr4221835qaf.0.1421943114503; Thu, 22 Jan 2015 08:11:54 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c91si1177128qgc.92.2015.01.22.08.11.53 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 22 Jan 2015 08:11:54 -0800 (PST) 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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YEKMK-0000Bz-2S; Thu, 22 Jan 2015 16:11:52 +0000 Received: from mail-lb0-f176.google.com ([209.85.217.176]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YEKM4-0000A7-Pf for lng-odp@lists.linaro.org; Thu, 22 Jan 2015 16:11:36 +0000 Received: by mail-lb0-f176.google.com with SMTP id z12so2390372lbi.7 for ; Thu, 22 Jan 2015 08:11:31 -0800 (PST) X-Received: by 10.112.97.163 with SMTP id eb3mr2506421lbb.47.1421943091299; Thu, 22 Jan 2015 08:11:31 -0800 (PST) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id o1sm6428902laj.29.2015.01.22.08.11.30 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Jan 2015 08:11:30 -0800 (PST) From: Ciprian Barbu To: zoltan.kiss@linaro.org, lng-odp@lists.linaro.org Date: Thu, 22 Jan 2015 18:11:14 +0200 Message-Id: <1421943076-12240-4-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1421943076-12240-1-git-send-email-ciprian.barbu@linaro.org> References: <1421943076-12240-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH odp-ovs 3/5] netdev-odp: fix pmd threads reinitializing 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.217.171 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 --- lib/dpif-netdev.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index a0e508c..9aa78ce 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -67,6 +67,9 @@ #include "unixctl.h" #include "util.h" #include "openvswitch/vlog.h" +#ifdef ODP_NETDEV +#include "netdev-odp.h" +#endif VLOG_DEFINE_THIS_MODULE(dpif_netdev); @@ -2366,6 +2369,11 @@ reload: /* Signal here to make sure the pmd finishes * reloading the updated configuration. */ dp_netdev_pmd_reload_done(pmd); +#ifdef ODP_NETDEV + if (odp_init_local()) { + ovs_abort(-1, "ODP init local failed\n"); + } +#endif for (;;) { int i;