From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from se7.mailspamprotection.com (se7.mailspamprotection.com [184.154.177.50]) by dpdk.org (Postfix) with ESMTP id CE11C1B05 for ; Thu, 24 May 2018 15:35:36 +0200 (CEST) Received: from ns1.es18.siteground.eu ([37.60.250.193] helo=es18.siteground.eu) by se7.mailspamprotection.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fLqOK-0002a0-J6 for users@dpdk.org; Thu, 24 May 2018 08:35:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=filipjaniszewski.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XOeUNXEDmf1HKC+C9OzOCKr4NosfwWjR1A19OMk/gXE=; b=UYkmEhluVpBZPhnfwG8zy9Bl2a zZkmXrRWl26oQ09B+anv0MOR5AfoZWg9Ld/VQo04uodrsGabV/1KJsW4W0Snk1Vd4ow4EGUeQzeXc p6QnjoWGMylg13HSbPX2aIR9IWGn1ixZLgk8W3jAemmZbvt05ZiIvvKHUAmSdgF2sOAJ28uewhZca X3d8MOZzPLzojNevPoNcEJpxfZkYDxUQAmrngmsvTsVGk9EhM6TAH+q1blPQYctpvQLSgEvCZjBmo rHylYab8LbzB8ijOavI8FoA47CfomfJMEF6OK/j4TU3va7yfBkzcqr0Xbi4S73kTxGPdSlC73aDQ9 h86y7uQg==; Received: from [89.64.58.251] (port=35048 helo=dhcp-10-175-206-130.vpn.oracle.com) by es18.siteground.eu with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_34-9f6032f-XX) (envelope-from ) id 1fLqOG-000AC5-24 for users@dpdk.org; Thu, 24 May 2018 15:34:48 +0200 To: users@dpdk.org From: Filip Janiszewski Message-ID: Date: Thu, 24 May 2018 15:34:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: 37.60.250.193 X-SpamExperts-Domain: es18.siteground.eu X-SpamExperts-Username: 37.60.250.193 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=37.60.250.193@es18.siteground.eu X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5h8bIS6Ih6qhWHQZ//M+ZNB602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvO1v+PcEVtX7KZY7H5dkGCkxVjyn5UrUp4n4yKOOaq9AxN4AXuzcbQTSdLgGtSIzxU1Dj fzzJ6O8jiVhZi+WiYeCsScX6I9Dl5i6VrUM1b/j55v0Yrwmm6bc+psklXFqIq+M0SnoZX29Ppjgp pjrn+Yq1umcuh1GvkHLZ8OnZHyNWPMpNXxpZuiYRs23iVM0el8g6NTTd2ar8H7FVMTvlrjiix59s TWOZYSnnMjQ31wvFVPTxUfTKKOeFu/oqiIZGN/NnDBDoKcsVac5Xn8LuQ8GAgCyxP9G+Y5LcO+ge l2RLsv0UzXAsY+zERVuxdQzDKY0OB8GxeGlmkZdGsQOduaLlgTl6fJxyntEfhZCKje4Zd6gSHf25 Zu5TWzMlXa5JrS7/+fOTvqVqTiiM4NskccQzKD2ZWwq7u/LhKSiDPRHd0B6JUJVXX9AN9l7ZeRQF g4IZeNiWKqg0N2OIklA5t9qtI4g+l6rCWbY0MZcgnbHsI4VuG2YAp15V0xjSqV1dt//668QTfvGR lUw/jfoddS5OzHwgEk2WUFTzatf6HoNeeV2jVlxkKgb3mTTgsNumAUoZJ2VYrPywFqhhkhZxNNIU 0fKm+NO4UU7caQLh0uHNZfmvXmwuB7TcTFd72kTHX9F4KYy1lXFV/zS/k1dSJ3FoOE0/Lmz41X2E UhMGSUpD0ruFdLhXaLPl8jEa7W+ABlzFXeu09lgMFbINEjvadoQRFZ4oobg8BBg3Jq+ntzj052hH V24IYkgdoAHtVgnWqjFzXDVmYdEDUv5jcJOPy0QcEeqckogxQOkMaqHrsxpMdSBuGLnS0GmgRBsg RhobAyG7X+t1TW39Ja77LGPpOwB3ZBsm4R/5NvLwDwvJM9p0KnRQuDY0Mm9V3b12yAdZ3g5uq7Rn al+YxmDGAQGKte7isAz/8etC8LV1ZryjKGsoBEAvznPLmKsRpwfYVIVNbfcrtz7Deqzmzsvx8OJJ bsip4h9YhWyAptCwqn/2LOvHD2NHsjfxvSe4OgmLZx2eB1oUFCp3ieI8O9oFIHlCbLRvlPE9yn4+ 7R7hw716lUpV X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Subject: [dpdk-users] Difference between APP and LIB X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2018 13:35:37 -0000 Hi, I've a weird situation: If I build my code using rte.app.mk, then calling rte_eal_init and rte_eth_dev_count returns the proper amount of NICs. The very same code built with rte.lib.mk into a *.a library does not recognize any NIC (If I include the lib in another test application that only invoke one function that trigger rte_eal_init and rte_eth_dev_count). The output of running rte_eal_init with rte.app.mk on my machine is: . EAL: Detected 8 lcore(s) EAL: Multi-process socket /var/run/.rte_unix EAL: Probing VFIO support... EAL: PCI device 0000:06:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 15b3:1015 net_mlx5 PMD: net_mlx5: PCI information matches, using device "mlx5_0" (SR-IOV: false) PMD: net_mlx5: 1 port(s) detected PMD: net_mlx5: MPS is enabled PMD: net_mlx5: Reserved UAR address space: 0x7f0680000000 PMD: net_mlx5: port 1 MAC address is 7c:fe:90:5e:79:fa EAL: PCI device 0000:06:00.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 15b3:1015 net_mlx5 PMD: net_mlx5: PCI information matches, using device "mlx5_1" (SR-IOV: false) PMD: net_mlx5: 1 port(s) detected PMD: net_mlx5: MPS is enabled PMD: net_mlx5: port 1 MAC address is 7c:fe:90:5e:79:fb . While the same invocation with the code built using rte.lib.mk generate this output: . EAL: Detected 8 lcore(s) EAL: Multi-process socket /var/run/.rte_unix EAL: Probing VFIO support... . That's all -no more prints-, it seems that nothing else is done by the eal init function. What could be the problem here? As a background note: I'm trying to move my existing DPDK code into a lib, and this is already failing at the first step (eal init). Thanks -- BR, Filip +48 666 369 823