From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0064.outbound.protection.outlook.com [207.46.100.64]) by dpdk.org (Postfix) with ESMTP id 123CCCB50 for ; Thu, 16 Jun 2016 16:07:04 +0200 (CEST) Received: from BN3PR0301CA0059.namprd03.prod.outlook.com (10.160.152.155) by CY1PR03MB2379.namprd03.prod.outlook.com (10.166.207.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8; Thu, 16 Jun 2016 14:07:02 +0000 Received: from BN1AFFO11FD007.protection.gbl (2a01:111:f400:7c10::105) by BN3PR0301CA0059.outlook.office365.com (2a01:111:e400:401e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12 via Frontend Transport; Thu, 16 Jun 2016 14:07:02 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD007.mail.protection.outlook.com (10.58.52.67) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Thu, 16 Jun 2016 14:07:01 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5GE6XoC026530; Thu, 16 Jun 2016 07:06:59 -0700 From: Shreyansh Jain To: CC: , , David Marchand Date: Thu, 16 Jun 2016 19:36:45 +0530 Message-ID: <1466086011-11920-12-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466086011-11920-1-git-send-email-shreyansh.jain@nxp.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> <1466086011-11920-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131105596221077820; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(19580405001)(48376002)(47776003)(69596002)(87936001)(19580395003)(229853001)(81156014)(68736007)(5003940100001)(97736004)(586003)(92566002)(86362001)(110136002)(11100500001)(2351001)(76176999)(50986999)(33646002)(85426001)(105606002)(6806005)(15395725005)(106466001)(104016004)(36756003)(189998001)(2950100001)(50466002)(15975445007)(5008740100001)(50226002)(77096005)(81166006)(8936002)(2906002)(4326007)(8676002)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2379; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD007; 1:SxTRHeYzrqwzFx+n+/qaFk6B2M6UFW45WPIE5JGBKzr9YopRu8jknT8BsSm0yBxvYIdpoHDDfuTpZUU5Xq/NqM5cBw+ROu+4Jyd3stEWC3IfzG9QVhr1qzPcfnadiN9cjH6Mm8PEuq5ewRGkQ9PXuX6vK3aELyxFzJoO+V+T3LruCIwCuWKBx2nUhskLIVwXmCJrdzPZLW3NPnaC3gFqfKgzUAUKkpO4SXslAjNDlGs7IssPIqyUGYLjNN0ZoFK2/LpKeqQsOv2BSkKO8fVeHWcThWJAU2ooSHuIBYmCoFHBLq2VE7AzXaPM0StvvOTQeO8Aqu1R5ZXKKqljNP5EzR6FgkDbjgeAzjBgTMaK/QtVgrjkfapU4baPoPkndP3rdSsC6ggxgz2CODkU+zg9OUwiSg/m2LjBHo0W6V3QYLgwJhzzWdDcWM8ak5DfaLlj7AMUT+77dxK33HkSqeO5RTtbJGa9bE/lsSlWmZSHixBazxfY5+y6AVPw/JjTWHQ5aWdhUkl9lCvt8axSIBw7ion8MhEnXzaPgaeeQ7gFhrHQQd+0NzWrOa89qaHDSOkcBW3TcmMdF0l2fPQPJRZCng== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: eaa0006d-7af3-4701-57da-08d395ef7d47 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2379; 2:43t3PKJ4wVrsNrra4n8pn7Ex9S0EX6/UJBElKtP+BiCDR3gtfyu9DFdHva+mg/01WXU+vO4GFFprr5cMipsLMOlquWAeIl/iSbkff8zTRTDsbCx2pB5ZfMS/pyHUaTdnxVsmSd8DxGgdh/12K27GXOo6u2Of03XkuujuuvD0mZevhZJMJxM4IK6itkhps/ZL; 3:xBn0h8973eitZqyZcp8w4il3ESYWt4QKd4Ry58yJpy8T967JJXZjP5zEmNr3BUYAaEsrGokguYSXpE+BSQ08bT7qiWjnFoJfGV1xGdXZcLZjYu9+5F4D4eBLenFe5Tq2keEFIVQdKCOND0SbovfuqElskaHnBTTaLulgg/8AuoUGoSyZgpw5DfgmMI9Px0p3m5tFtJcy7eIV2z0rvuDVDwGtI5/fGiZ1GVJAXQ9UUG4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB2379; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2379; 25:5Xxmj6AGNQKOi2EyCkjCr1fWJNhJMIBi5Jj8SrVpI4zwhmQ4TDGkHbPzZdtXCxJos7iMW6lJqH0uv+pUrwUjFlR82OZViUjVSen5VhnI2h3I6I6kfX0x/6za2wXEvgHRpkdXG+FubTwQNtmCO0HGUmI9exMpPdwj8+w0WLzmNIg3UvaRVEF+Vcne4bT5c7vF1DrR65ojiCPLedfEX2YDvHt6Hd8DSosqW2weqtcmJY9fkeZ0vX+Y5tPYJmK0kUI7WTdrTQV28sIKa36XFTA3nLvQSzvukZyFCXjincGzuiawzqF5cykqaqG/QRWxKWtEuyaF5+0ihuujZy5a/Aqjm5ihPuXGpO/Otmu6wCb0RzyM5evofVePvCotCIcIu6qdMJ5ivRxa74M3Gizve0rijB6Wk0ywauTgjv5jThsIheL1AoiURO19oLB4wmr3R8zA0o2R156AQ+e9LpUIcVQ2x7/UztAqQ9UJtsGMkI/xAU3gyIN+Fo645aO+weNa9th3fTs52SA/pHQRveF4qhLAblCJsVWkPM7LMiq1VvBg6p+IAQll+/sErkusVGsjnw3K+vYcXig6p1JtnJW1d45qru59+L4v2kbw2mnDTfcAv4QO6q3Nm1ILUkOKX3bxll1/T1VwXpfkzc/4lJk0bVrcHvKMyOF07DKogt0rSerjwEo2XAa4zrB2uiFyPzVpe+O2yI6pdvqNCqnyYscvsxJQ9ZLeVT8zy4KrZ2IceDNRWONvQ3vGm4sxN+GQG/un1Qmh2hf3LC17P3oWUUBVhfsuVIjB+DxYpyGqg6P1e2B/bSuK3uerhNcbdDzBMJgxul6p X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13023025)(13015025)(13024025)(13017025)(13018025)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB2379; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2379; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2379; 4:6VJ7UfHSbFSNoPpAcsUWPa2IjVts7OPQkqdcLqNUeTSUHoite7xMT914J5H5Nc0VCFJWCxXMKz281jEy5wkDDkOrvoZDRSW72h9VS/QanMV/m1TQbygP/KTqFX/rm1gU4X4TCfivip3keWD8WiqnRetksUdqnEw4xcheTjxoQ3iOnRp/g5Ru2Nbf2K//6LoF881RpiX3QmsNInCWbGWo6/6lCbzbuGJg9ndO9yxW1uKYIPI4VN1zoSfKIPwniXOMtfmzCgZ4xT5pAH63+PDddhZEinOKWVIqPoRKQdqmSH919pW+2UtvCArBvdIatM4Zcjp16u6AuDo7InvI5WWK8sN1CxOkl6EiZPazWuwu/UkKOPeNxk1RgLxZ3SBjQ7TyjlJyiVdDLsOp54u3pn62L8Jo633fMkByUhXYUkqanSsQyZhClRY8Nins+qD433b84N8ytyE503DAn9vTqb+qCaJyR9gFgnYoj1cWv1MRch0= X-Forefront-PRVS: 09752BC779 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2379; 23:xpPmJLuqtj/R8Yz8v1l/b+iOHiJcYTpbs+EsabYUh?= =?us-ascii?Q?TkywTPilqLuvd/p+tYNrdmp6XMLjxrHg9OPdnJeIyCHcI3ecfvAaERYVBQC4?= =?us-ascii?Q?IhKO9S97NmsDjDI9VuFVA9IUpQX9ADApO15P6G4QvCHrsD4oR1/8R3cEoS8Z?= =?us-ascii?Q?jDhfOj/v7lSekHwyaaiYDj0GdBBPh7ElVwqtP/loBun05MDLcwNZCNZDWMDw?= =?us-ascii?Q?p8TWymCVI9L8eVaMaTPlfX4rW0KhLeLq8bRDZpO0F8I0j8la0XS67tAoZvUi?= =?us-ascii?Q?5j8xJPFq2DP0TFQAspWXzErnQOe3GisNbBD/3TlaApuUrRf+pP88Kk0sRzkb?= =?us-ascii?Q?YmEe1hdUYdH6DJ86UAeVAoyv6bAbwhLEeq9kiLGYwiOY3VEpDlJkks7FTjya?= =?us-ascii?Q?pJ97tvtV32exbvGAW14345hRAqcf/Hru5qqe+coSF5r+Jp8NIxARh+bkpamb?= =?us-ascii?Q?GPfQ5+dpk0x2lLN8SaUnmuxLvuFODVaroUPOGJyRmj7lF0R9VJQ3RKR5EN85?= =?us-ascii?Q?bJ3utGB8Vl7guVA2dvRTiwQpGAf4TK7/vl2Jh4qvv3u0X5pCRKt8pJcWhYzq?= =?us-ascii?Q?012dhswKnBsJbzEX7Wlgj2nmATz8Y8LElJmcMs8krReJy4lzNduvKuq/r8Nu?= =?us-ascii?Q?nDRocynrn3OlegdYhCcYp7V+/khmCbh60xUsxwF5kHJR+sJIFaFNZQVLcwcX?= =?us-ascii?Q?lzrajl0bcuii7k7ICh+43gv/E18x0ERr/yp3huonua9LoDRkIYsrfg1JDg7c?= =?us-ascii?Q?xYv/0o4GEYd/MfRDL99dxl4Vy85j234zddy1g2ctP2ueRxd2c2hUagwvttkb?= =?us-ascii?Q?UKtZOmjAlpIO1+ILRNODeSciEi6q7j9VQSNi7z/Z1hdV9/opqUUU8lcXC+Pi?= =?us-ascii?Q?pX9RlepF4H+NPosYnXpK6uw4k2/7XKhYiljG71RtYWn05i6DQErjKR0RT1q/?= =?us-ascii?Q?NHuk52A7VRHv7LFKq0uMPqdpaehOzDlIyU4FyLZkc6Z4wbjLzLIxeoADVWhH?= =?us-ascii?Q?0elL33/LLvOeYgPCFNaTSNFrc6mx019xgZIg2g+U6JGxs8DA0CwlrXNOLLwW?= =?us-ascii?Q?mesA+g9ayknHOZarWHBUv9BwmCGoT6cAnGuVXBe0nQNUeqQilxNS+wlO3VyP?= =?us-ascii?Q?gwqqvHVFkBuCsQhedFi4PLTDHHemjZcvruMIcPuzDOEMML3opBuAYENZAFa8?= =?us-ascii?Q?X9d/XzJJ5D+eG8kNqQelV6gompfhukNRPx8?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2379; 6:p5G7PqHre9+tlP/gVj1axSE/lAP/VHwAjZHSybp/9br7WCpe6mpqawDrr5pq/0pGBJBmXKhQpTsf2LW/M+cgAmvq3DQZj+mUwpZzNJ2xMY3i/AkNtckQ8jEYjTjILZIhcuUYif3LZXlHjf7Whbd0NOTYnFwbFj/MNUNVMQY6Y/g5cvfATKhX6mXmGIlEyCkvBnbgxpUwNKxr9/D8hq2moc6pDArBHKqo5yYLEOZLzoYwUtj5Qz8djfo7shZBazoLKLFW108D//veGDBsKL09SDcf3QcwT8ObIJWV1s5vhlI=; 5:D2JMxVjFQK15ClQ1IEhh3I+ZZIEdDtTz+u5nvTi03f/qQoFI2as46ih2c/Rlg9dTV6yuRGY8qvyhpQmARANdh6A23yyVw38qWVhaTomz7yjpB+jYT01ClVGwEBKPOdze1ksTiLg5OQJXX9Ifgje9HIZ8IrvctQO3s6l2vYRMR6I=; 24:vSvkk7nWD6fbZiCMwfEW4CdsGWoxSfXamZEjIMChCdFdAcSOys8jmmMmIzEiSb4OcSPhUnx7N01M5NCDfuSS90ilizT+fVGvZ+lEAZyvRwc=; 7:HcdOvMcC7D/fsK3EXhZVl/7127wdSjIivz/o2nBf/NQEusfNz7SAzqNxBfP2M+D5+QYtbDlMOaklyoSfe71Fa6/n6g76+FxE9y6p5r+66jtp6A5oUnr+uGjgKxdvMhu36ocHjX6xosFj11ftEwlSPDWnQJM0HV8wta+B8TuivU5YxkrBiRtFOuevO9j6GyKYipg/ubWXOjrmUI9y3xbrwg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2016 14:07:01.8737 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2379 Subject: [dpdk-dev] [PATCH v3 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: Thu, 16 Jun 2016 14:07:05 -0000 From: David Marchand 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 5ec3d4e..6eca741 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -821,6 +821,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); @@ -832,9 +835,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) { /* -- 2.7.4