From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 000E9A0C4C; Tue, 5 Oct 2021 18:08:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD62C413E3; Tue, 5 Oct 2021 18:08:58 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id B16D6413E2 for ; Tue, 5 Oct 2021 18:08:57 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 963DCA0C4D; Tue, 5 Oct 2021 18:08:57 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Tue, 05 Oct 2021 16:08:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 21.08 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: barbette@kth.se X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 824] RTE_LCORE_FOREACH goes over unactive cores with dynamic linking on BlueField 2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D824 Bug ID: 824 Summary: RTE_LCORE_FOREACH goes over unactive cores with dynamic linking on BlueField 2 Product: DPDK Version: 21.08 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: barbette@kth.se Target Milestone: --- This may not only happen on BlueField 2 only, but this is where I catched t= he bug... test.c > #include > #include > int > main(int argc, char **argv) > {=20 > int ret; > int lcore_id; > /* init EAL */ > ret =3D rte_eal_init(argc, argv); > if (ret < 0) > rte_exit(EXIT_FAILURE, "Invalid EAL parameters\n"); > printf("Have %d cores\n", rte_lcore_count()); > RTE_LCORE_FOREACH(lcore_id) { > printf("Core %d\n",lcore_id); > } > } Then compile using dynamic linking: > gcc -o mytest test.c $(pkg-config --libs libdpdk) $(pkg-config --cflags > libdpdk) Run: > ./mytest > Have 8 cores > Core 0 > Core 1 > ... > Core 63 With --static --libs it works fine Maybe a check should be done to verify the core is active in RTE_LCORE_FORE= ACH but I did not see any doc and there is no such things in the example. --=20 You are receiving this mail because: You are the assignee for the bug.=