From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.ud15.udmedia.de (ud15.udmedia.de [194.117.254.55]) by dpdk.org (Postfix) with ESMTP id D4903374C for ; Thu, 3 Aug 2017 15:45:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=ng4t.com; h=to:from :subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=k1; bh=+/rbgGdKbK2fhkmLaZ2V7EQwlHb WZU651688lbQ7Vwo=; b=pyEQ/5j2rrfekIURIk0qei3rQukyYfHKVgyT/yxzuHk E/N562mvyMDC/SK3GuVrwuByPCbYVWj0pVBTgEpR31md7rVzCNLi4XKQD3EPL7w2 zOeCVP9YPx6EzVhUKPm6GqMSN2bAb0Nd2KLKXijURvaDADkEFLAXDjNC6bRJ+lNs = Received: (qmail 13344 invoked from network); 3 Aug 2017 15:45:39 +0200 Received: from unknown (HELO ?IPv6:2a02:8106:1:f900:2e0:4cff:fe68:158b?) (ud15?2p5@2a02:8106:1:f900:2e0:4cff:fe68:158b) by mail.ud15.udmedia.de with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256 encrypted, authenticated); 3 Aug 2017 15:45:39 +0200 To: users@dpdk.org From: Dirk-Holger Lenz Message-ID: <933d585b-6e5e-f032-040f-2f99bab733ff@ng4t.com> Date: Thu, 3 Aug 2017 15:45:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-users] cannot allocate more than one vdev device of a type 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, 03 Aug 2017 13:45:40 -0000 it is not possible to allocate more than one vdev of a type (e.g. crypto_openssl or crypto_aesni_mb). Our application may use several crypto devices which may be virtual devices. In the past it was possible to have several arguments of --vdev (as much as devices needed) (e.g. --vdev=crypto_openssl) given to rte_eal_init(). In the current version (17.08rc3) in any case only one device is allocated. In our case we are using dpdk built as shared libraries. This happens due to the check in vdev_scan(): dev = find_vdev(devargs->name); if (dev) continue; and in rte_cryptodev_pmd_allocate() if (rte_cryptodev_pmd_get_named_dev(name) != NULL) { CDEV_LOG_ERR("Crypto device with name %s already " "allocated!", name); return NULL; }