From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 1C7DAA0096 for ; Thu, 6 Jun 2019 23:27:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC90E1B958; Thu, 6 Jun 2019 23:27:23 +0200 (CEST) Received: from mail-it1-f170.google.com (mail-it1-f170.google.com [209.85.166.170]) by dpdk.org (Postfix) with ESMTP id CB3885424 for ; Thu, 6 Jun 2019 23:27:22 +0200 (CEST) Received: by mail-it1-f170.google.com with SMTP id l21so2357257ita.2 for ; Thu, 06 Jun 2019 14:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CWnrmKtOzX3JSCEXn0GdCiYye1zXthZSEKpGoV8rUsA=; b=CCJfK5Eh5Pn/iBoI/+PWZbDSlR/bqpw+mCK1mSAd+Sepij2HppZB67y50b+as4tqSA /LmnRUKS365bwF360d7dQvOMLEP51ERGdjvB4t+JhemAnqgyLqzx+mAsAlw23GlFYE7e sdsDbCu8k3EGDsy9gu89GEy9GRLc2+S2WFRW0dDWzct0vue/S1Oml6Wwf4zw7VvNfHya hzw6fpy7TkrfIgj6hevpVUthFRoNFzEO5Fka1f5q5ufZoB9V+jz0k9zVi+Q9ajxb6/4c TNI8SOUvJ3YzPAiOtvb5s/6adlEeAMFYwz3LcSAIvsVHI8cggYFN9l/MFhxO/0s82tHh Yi3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CWnrmKtOzX3JSCEXn0GdCiYye1zXthZSEKpGoV8rUsA=; b=ruzLQKfeARR3lTeuwrK8LEN/w0lTYhRGhsoUUEQyapbOoGfpsjatCUPlFMy0ZDJeDG xBZMzeicyAEyiEa0KVlDoT6J2NltXN0crR71RCajCNKvBumJLm6l0XWTpAQ+RqMwKXB7 0aoRMSGdwLEtsKmnekcmo+k9YZAK38PC49WVmN1CkCWBsNzOss/StBcZSfkp39Hab4qK 0mqAHGELlpx0Baoo91lyj/CqhvtHOQB7Xy/a1IYFIw9LynnDbcnDbSKgoyTMptfwjGzD nOruX1sPnwb3akmtj8mlN0vHk+VxDbqOFtYb/FNg8x1v0f2MaqQPDDxmrDtKNT2fier5 qsFg== X-Gm-Message-State: APjAAAWgpzw1tRHJwgQ2f870Z4U9jupNO626444fB533tvZ/WV9bY7JU 7+NnHRcy/dvF3v2NtcLvieUeHdPBio5cahLHz9F/cZSV X-Google-Smtp-Source: APXvYqy95UuJUNN4mo3WsD2e3DQ3f8CQLXSatHfCo6pmrkxMYdwIrMw5xysjNNd9SGVsXtsWGh++/T6sTvzUgqM3BUk= X-Received: by 2002:a02:69d7:: with SMTP id e206mr34091017jac.21.1559856440546; Thu, 06 Jun 2019 14:27:20 -0700 (PDT) MIME-Version: 1.0 From: Reeve Yang Date: Thu, 6 Jun 2019 14:26:27 -0700 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-dev] rte_eth_dev_count() returns 0 with ENA device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Hi Gurus, I'm trying to bring VM under Amzaon EC2 R4.16xlarge instance, so the ethernet device is uising Amazon ENA driver. The kernel is 3.10, dpdk is 18.02. All ether device are bound successfully, but for some reason, the DPDK data path cannot be initialized because rte_eth_dev_count() always returns zero. Can someone shed some lights? Thanks. I'm pretty sure the VM instance is set up correctly in terms ENA enabled. Below are some details: # modinfo ena filename: /lib/modules/3.10.0-693.11.6.el7.228052.x86_64/kernel/drivers/net/ethernet/amazon/ena/ena.ko.xz version: 1.0.2 license: GPL description: Elastic Network Adapter (ENA) author: Amazon.com, Inc. or its affiliates rhelversion: 7.4 # lspci -vt -[0000:00]-+-00.0 Intel Corporation 440FX - 82441FX PMC [Natoma] +-01.0 Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] +-01.1 Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] +-01.3 Intel Corporation 82371AB/EB/MB PIIX4 ACPI +-02.0 Cirrus Logic GD 5446 +-03.0 Device 1d0f:ec20 +-04.0 Device 1d0f:ec20 +-05.0 Device 1d0f:ec20 +-06.0 Device 1d0f:ec20 +-07.0 Device 1d0f:ec20 +-08.0 Device 1d0f:ec20 +-09.0 Device 1d0f:ec20 +-0a.0 Device 1d0f:ec20 +-0b.0 Device 1d0f:ec20 \-1f.0 XenSource, Inc. Xen Platform Device # dpdk-devbind.py -s Network devices using DPDK-compatible driver ============================================ 0000:00:04.0 'Device ec20' drv=igb_uio unused=ena 0000:00:05.0 'Device ec20' drv=igb_uio unused=ena 0000:00:06.0 'Device ec20' drv=igb_uio unused=ena 0000:00:07.0 'Device ec20' drv=igb_uio unused=ena 0000:00:08.0 'Device ec20' drv=igb_uio unused=ena 0000:00:09.0 'Device ec20' drv=igb_uio unused=ena 0000:00:0a.0 'Device ec20' drv=igb_uio unused=ena 0000:00:0b.0 'Device ec20' drv=igb_uio unused=ena Network devices using kernel driver =================================== 0000:00:03.0 'Device ec20' if=nic0_0 drv=ena unused=igb_uio *Active*