From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 31F5837A8 for ; Wed, 20 Apr 2016 13:44:34 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id n3so77127548wmn.0 for ; Wed, 20 Apr 2016 04:44:34 -0700 (PDT) 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=jx3yf+j0RmXgNdLkuGePPNgdaZQKLsaHdO6DmTdDK5k=; b=Gc96Vj3x31/N8K1UATyW98d1pQW51WtcL4GON9G7ExBky5XvnuWsdr5JHKEJMVXdF/ kRdnojM+3kcONaSSxQnD8JNcZau7M6LHLQXGU2QnQsRcwqdeaW3mcXzSjEE0rs9aTloH O0+Ey/Apxea1Z5FJgUEVPIHOeKi41oYge55Xec687aRNNxOZsBBqYW2Eb8qHy+NIzjxl ywPcev/Rm0HO7ooZZYXhEGaJkYqKJm9+fWddZ/+bWDPSWj76IIu1K2CDwOM/wtckj9Ts 6jNfS/7O+xURU1Saw7yigqwsZ/Bvc2q8+5Vm8rqMmTw6L5ZqeTZmc9/ef1Z0zALpS/VF h1FQ== 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=jx3yf+j0RmXgNdLkuGePPNgdaZQKLsaHdO6DmTdDK5k=; b=Pe2hwZO9MF1Wim0rQCeuo5LEPo3yG5FdY0gFBJ6y8md/a72lMiGIsSEZuamhWePlSS 4pcczCpMFp1NLWFj9kSsoCJss73wCq1elkJU3iJM295+sLBd3zXaXy22SaUcLG6IyAw8 hwqpfINpy81jWt8iZg2bLL0pWNMDzzenl6/sQ8NA4cGeTwd548kfYKV3v0cZBuIPJLgA Dh9xekz9jNI/fJNw5tcUa4NC6hfiEbANgGjtQeUAZPhnlttVC6bFI+BVFUyZG0mwEUpl kdX/rMGEdawZVO4Dz82/0zZkaAfON+cte/wbDz1J733Xrdq5ORcF7RFTpfevoCKDT6hc h4CA== X-Gm-Message-State: AOPr4FUJDafyDcEKL4hUQRBCBf9ROWtbLDDQ3a6mxovsIIyhxYmFAcjgykLn5dIkHTCHoydn X-Received: by 10.194.84.100 with SMTP id x4mr9508461wjy.169.1461152674048; Wed, 20 Apr 2016 04:44:34 -0700 (PDT) Received: from gloops.dev.6wind.com (144.77.126.78.rev.sfr.net. [78.126.77.144]) by smtp.gmail.com with ESMTPSA id m6sm5195708wje.21.2016.04.20.04.44.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 04:44:33 -0700 (PDT) From: David Marchand To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, viktorin@rehivetech.com Date: Wed, 20 Apr 2016 13:44:11 +0200 Message-Id: <1461152657-19969-12-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461152657-19969-1-git-send-email-david.marchand@6wind.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> <1461152657-19969-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v2 11/17] 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: Wed, 20 Apr 2016 11:44:34 -0000 Now that virtio pci driver is initialized in a constructor, iopl() stuff happens early enough so that interrupt thread can be created right after plugin loading. 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 Tested-by: Rahul Lakkireddy --- 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 f26f8d3..4b28197 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -825,6 +825,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); @@ -836,9 +839,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