From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) by dpdk.org (Postfix) with ESMTP id C36F96CC5 for ; Wed, 12 Oct 2016 06:45:05 +0200 (CEST) Received: by mail-qt0-f177.google.com with SMTP id f6so8897562qtd.2 for ; Tue, 11 Oct 2016 21:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=P9Uiba5UHQmZt42OMsYFl4qCRkJyEYn1iwajvX/kIyk=; b=vCEVwADFURiIJZvpXl49gkNiqyZ/VgX6rhjCX+IJhIMOEreUkhDUshxdt7y74+Qwth 7kuzUscx3mxqkqZKMEuQlmICVqvF03wcoSBUfo3/SzfTtoWVgBpQSr7iuRmtKYrkNpSx eVRzqQ/VP719kyFD3OprAk8Qz4MTIZpHMNcbtup/hCNvYU6xMY8t35r82dd/4oGzWpV0 IKda7gg71B4XC1ZbNb4kACY4EvoBgyA+kjiuPPVg+vdqgS97LD4BMUyDWP38pORPqBtp c7lbjHrr4dnKrRChHSCZiJ2TrBfBwJp8AE7qOMPg8FVTud2+dBVNEG7f8io9ELjeBguI 6rsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=P9Uiba5UHQmZt42OMsYFl4qCRkJyEYn1iwajvX/kIyk=; b=jjeVWaGwaj88llPGxOGKuvKqQ+sYLP2LcCHYdm6Zbc8dKyzv6gRiYPV32dnPRjC9gm D+/Jaa2bw+UEn+7Soe5FnDVxbjzydIt5NPuohSk0slmQegX1vEHt/no8+nZ2HHXvUnaV scTQ4jS5VB0H5CBtKFc3gBzfTGLCCfbrsx35jZqqbK0eEV+ttNQrBZ6wIrcljZm0Xrk7 62cpMvXC0+Opet5j8dRFgx0eKMmpGA+Q2UF3CaXcvS0LaHhqYp6B2k3xh4DgKXXK3FhI ztRiEWKplqXUNzsno2jSG93TR6n4Om402RgLaeBOQkwHFUCSCn0TCNmn6aTuETKJFo8/ 33vQ== X-Gm-Message-State: AA6/9Rkv4e5uQ6B5IjkDeg+ZeKIqyMti+NjBlSu77c7sd6dLc4Q0iPnci4c588kI4lnFHFZtryu8Q0NS2sVc1Q== X-Received: by 10.200.54.144 with SMTP id a16mr6251989qtc.126.1476247504899; Tue, 11 Oct 2016 21:45:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.25.6 with HTTP; Tue, 11 Oct 2016 21:44:44 -0700 (PDT) From: Aniraj Kesavan Date: Tue, 11 Oct 2016 22:44:44 -0600 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Need help understanding rte_eth_dev_count X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 04:45:06 -0000 Hi, I'm very new to dpdk and I'm trying to set it up on a cluster with the following configuration: DPDK - 16.07 Intel X710 2x10G Nics Ubuntu 15.04 I could compile it, but when running sample applications such as skeleton/basicfwd and testpmd, it fails saying the ports aren't detected. I have done the following: enabled 1G huge pages and mounted them under /dev/hugepages ran dpdk-devbind.py on the interfaces after which the status shows: Network devices using DPDK-compatible driver ============================================ 0000:04:00.0 'Ethernet Controller X710 for 10GbE SFP+' drv=igb_uio unused= 0000:04:00.1 'Ethernet Controller X710 for 10GbE SFP+' drv=igb_uio unused= While running gdb over the basicfwd application (run as sudo as it seemed like a requirement), it seems like rte_eth_dev_count is returning 0. Even the testpmd application is reporting no ports available. I have tried the portmask option and tried to pass the interfaces as -w arguments too. When I looked at rte_eth_dev_count, it's returning an unsigned static int that is only updated by rte_eth_dev_allocate. Following the breadcrumbs, it seemed like someone needed to invoke rte_eth_dev_register. I didn't see that being called in the basicfwd example's codepath. Can anyone tell me what usually causes rte_eth_dev_register to run and update the port number? Or is there anything I might have missed in the configuration that's causing the device to not show up when the library is looking for it. Thanks, Aniraj -- Aniraj Kesavan MS CS '15-'17, University Of Utah CS '08-'12, Govt. Model Engineering College alternate e-mail:anirajkalathel@gmail.com http://www.cs.utah.edu/~aniraj/