From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 53867C6B6 for ; Fri, 29 Jan 2016 15:08:47 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id 128so54431035wmz.1 for ; Fri, 29 Jan 2016 06:08:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=km4s4ei6KBmJkVdjhieFIdmbRfP29sqQHMu4vbcEP4M=; b=qU89UbWqrj3d/j3uzSVObeMtSdqrUsMRLAg+AAtY47tW1f/BVy2tEHN4AYD8AB/JIa Igx1xuWfaLZptPKJ8nHp4O+OFFDkmd9gw1j7/6i0Caj/7Ms9QPfY6bk+KBh6qJBiplnI RPi6jkSLBfqYYOxsG0GvW/7/qT382tjdN/y3q5k7hG+Wxi+ZswTM3U0uMu5XW4rPGPHJ yiUmMqfrBiE2u/IkhEizA2ArIaw59hzNi+o5GKjHjoSR60pkC0wpwh5MyIJH6s1iPOmL 9XEwssP47gTuDySpOlAxH3POPl86F1Eztfu4sW3whjsVtVyVn8VXOO2F8Bqb1ZQmnxNB vbIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=km4s4ei6KBmJkVdjhieFIdmbRfP29sqQHMu4vbcEP4M=; b=kTZ1i6WI3DqAGV4S3wqcAEKpkZaDH2j7OmN2VHLRJVvkK9NWCTQLaiVbK/6kDSeUUI ksSSHNloI6c1F/0vOtsQbKGXUIiBK4AF8vn7q4ChR91qhLSLDIdyMdXDgK8clHFAr49L Yk5lxasIjDHDiyohh7KmTG49pJx2JWDDbwtu8ms3lNGxa862vV0y/KfJrEjgtGaJVTj8 3XSgj7kJX+OJI5zhzNAZ58x/dSsb/NKc2Me/kXMnjasYbs/SBbltVUUJrVhICgU3fMvw ElZEkaZ1nuZPkQgwOuymUq8byz5yMZdUVWSmjpofwwz0djb9dAPFEQNRVaJnRT3w5BVe 9ixQ== X-Gm-Message-State: AG10YOT6qAz5uq7y8vx1ZQdzsKA5NQu+Ew2Y7pLnoo9islQC7DiMfJ+MZDYQOA4/2tvvqbx7 X-Received: by 10.194.24.164 with SMTP id v4mr8869202wjf.138.1454076526218; Fri, 29 Jan 2016 06:08:46 -0800 (PST) Received: from gloops.dev.6wind.com (144.77.126.78.rev.sfr.net. [78.126.77.144]) by smtp.gmail.com with ESMTPSA id 67sm7669944wmp.20.2016.01.29.06.08.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Jan 2016 06:08:45 -0800 (PST) From: David Marchand To: dev@dpdk.org Date: Fri, 29 Jan 2016 15:08:31 +0100 Message-Id: <1454076516-21591-5-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> Cc: viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH 4/9] eal/linux: move back interrupt thread init before setting affinity X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2016 14:08:47 -0000 Now that virtio pci driver is initialized in a constructor, we only need to move the interrupt thread init after loading the plugins. This way, chelsio driver should be happy again [1]. [1] http://dpdk.org/ml/archives/dev/2015-November/028289.html Signed-off-by: David Marchand --- lib/librte_eal/linuxapp/eal/eal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 635ec36..62241ee 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -823,6 +823,9 @@ rte_eal_init(int argc, char **argv) if (eal_plugins_init() < 0) rte_panic("Cannot init plugins\n"); + if (rte_eal_intr_init() < 0) + rte_panic("Cannot init interrupt-handling thread\n"); + eal_thread_init_master(rte_config.master_lcore); ret = eal_thread_dump_affinity(cpuset, RTE_CPU_AFFINITY_STR_LEN); @@ -834,9 +837,6 @@ rte_eal_init(int argc, char **argv) if (rte_eal_dev_init() < 0) rte_panic("Cannot init pmd devices\n"); - if (rte_eal_intr_init() < 0) - rte_panic("Cannot init interrupt-handling thread\n"); - RTE_LCORE_FOREACH_SLAVE(i) { /* -- 1.9.1