From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f177.google.com (mail-ot0-f177.google.com [74.125.82.177]) by dpdk.org (Postfix) with ESMTP id 6F5D71C31A for ; Thu, 12 Apr 2018 20:30:21 +0200 (CEST) Received: by mail-ot0-f177.google.com with SMTP id d9-v6so7098387oth.10 for ; Thu, 12 Apr 2018 11:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=128technology.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=zRpNzVflE+6eq9oT3MBncRvlM/E2809wCpSbQdry598=; b=hKbVorp0LghHyCH0wW8v2VWyPdALXG1DxqKyT3Vvvpg7n5MA3UvKm1UlVppVUXJH1L tgoTStvqi1Pk1MjW3NfJUwffRa/HQrfDJGlCr1ddbiX5CiMeVK6iOfM/1ER/iKRlapGi i9dbLiTcyP+xke6dtd7LPgRMzPHuCKWnHohJU= 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=zRpNzVflE+6eq9oT3MBncRvlM/E2809wCpSbQdry598=; b=Ao4qk7haUxlQKOISomNw6K836813pD3FXGhMv/zfDo4HXOz8toU0xw86b6XVrhazy7 I/8EJeexaZioEgxACXbS0NRg7MpDJAL5VasXSn3cvmDqBi0TMwybVN5pU4EBtVgrN+Dp 5Afmk7DqrceO4xZa6+fNlmbnpLGQHKkrvNaxhnfUQa5saj83vnTpr3uxnsU6hWjy3xqK GzmfYBmnZPwcqd5sUu8xCXj+WyemAmUr0Q7k1JDQ6KkSgoKRtXVWVtf8NQpIe6wz5JXk kiTR3s13XCtMO7Kgo/M12jR7+uZlyU6gRI8Zci/0SP2W+4ZxrmOUSHcM/sZ7GnnCW4gl KkYw== X-Gm-Message-State: ALQs6tAH07xqxkIQQwlxv/pqZjzW6BJJFLZ9oOHF/3lntzjddNqFggXA Vm7deCidn/2qNicKbAwZ08zwAWMCsXB6YkgGHSoVIQ== X-Google-Smtp-Source: AIpwx4/aL1Dws+zOSwu0urGkGRI9dzLh8xNj8HZAHYlcpbwRpE2/GaRX2lDyuL9CXyfc0Ot8wXG2L8rCCZtX1GvK2pY= X-Received: by 2002:a9d:6199:: with SMTP id g25-v6mr1361885otk.199.1523557820629; Thu, 12 Apr 2018 11:30:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.7.221 with HTTP; Thu, 12 Apr 2018 11:30:19 -0700 (PDT) From: Dennis Montgomery Date: Thu, 12 Apr 2018 14:30:19 -0400 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] virtio: rte_ethdev port_ids consumed by rte_eal_init() 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: , X-List-Received-Date: Thu, 12 Apr 2018 18:30:21 -0000 Hi, I've run into a problem with DPDK v17.08, when built with CONFIG_RTE_LIBRTE_VIRTIO_PMD=y. After rte_eal_init() calls rte_bus_probe() we end up with the first several entries (matching the number of virtio-pci eth devices on the system) in rte_eth_devices[] showing state == RTE_ETH_DEV_ATTACHED. Subsequently when we try to allocate a new device (via rte_eth_dev_attach()), rte_eth_dev_find_free_port() returns a nonzero number the for the first device we really want to use. The device functions properly so this isn't too much of a problem, but effectively it limits the number of virtio eth devices to be half of RTE_MAX_ETHPORTS. I'd greatly appreciate some guidance on how to work around this - i.e. whether it's fixed in a newer release or if the structures filled in by rte_bus_probe() can be started without attaching, or whatever. Thanks in advance, Dennis Montgomery