From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-3.sys.kth.se (smtp-3.sys.kth.se [130.237.48.192]) by dpdk.org (Postfix) with ESMTP id 82E594C9D for ; Wed, 5 Sep 2018 13:19:57 +0200 (CEST) Received: from smtp-3.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-3.sys.kth.se (Postfix) with ESMTP id 2CFDB3BBC; Wed, 5 Sep 2018 13:19:57 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-3.sys.kth.se ([127.0.0.1]) by smtp-3.sys.kth.se (smtp-3.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hM1ceGNTi8BF; Wed, 5 Sep 2018 13:19:55 +0200 (CEST) Received: from exdb02.ug.kth.se (unknown [192.168.32.112]) by smtp-3.sys.kth.se (Postfix) with ESMTPS id 8C4DA3B8D; Wed, 5 Sep 2018 13:19:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1536146395; bh=E0bDiauPvMFIhMGfYKJ3OQITddSs5/FfbSy8g796FLo=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=OQrRQdxEIs6Ot01aV7aEd2JyAIe3IZg+Y0cnW17H14MKcO46k86YtkGIbeMMb+P07 exiOlkrowEpxW+FHY5l2rUYwENl04whE6yDkB8g3URC4ycMbgs8yKWl8ED/cn8+9V6 Vc8amV5zXUuO3prMc/7Q4GFJ1zoKGQF4f9nGkSdM= Received: from exdb05.ug.kth.se (192.168.32.115) by exdb02.ug.kth.se (192.168.32.112) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 5 Sep 2018 13:19:52 +0200 Received: from exdb05.ug.kth.se (192.168.32.115) by exdb05.ug.kth.se (192.168.32.115) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 5 Sep 2018 13:19:52 +0200 Received: from exdb05.ug.kth.se ([192.168.32.115]) by exdb05.ug.kth.se ([192.168.32.115]) with mapi id 15.00.1367.000; Wed, 5 Sep 2018 13:19:52 +0200 From: Tom Barbette To: "Wiles, Keith" CC: "users@dpdk.org" Thread-Topic: [dpdk-users] ring vdev and secondary process Thread-Index: AQHUQ5It6pR153irskK54tyRC/5OoaTfHiqAgAJvC5M= Date: Wed, 5 Sep 2018 11:19:51 +0000 Message-ID: <1536146391337.81304@kth.se> References: <1535985620212.88927@kth.se>, In-Reply-To: Accept-Language: fr-FR, sv-SE, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [130.237.202.15] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] ring vdev and secondary process 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: Wed, 05 Sep 2018 11:19:57 -0000 Hi Keith,=0A= =0A= No it's not the problem. The ring is allocated by the primary. The secondar= y should just attach. Vdevs should be usable between multiple process from = what I gathered.=0A= =0A= Tom=0A= ________________________________________=0A= De : Wiles, Keith =0A= Envoy=E9 : lundi 3 septembre 2018 17:08=0A= =C0 : Tom Barbette=0A= Cc : users@dpdk.org=0A= Objet : Re: [dpdk-users] ring vdev and secondary process=0A= =0A= > On Sep 3, 2018, at 3:40 PM, Tom Barbette wrote:=0A= >=0A= > Hi all,=0A= >=0A= >=0A= > I'm trying to use virtual devices (ring-based PMD, but the underlying sys= tem does not matter) between two DPDK processes.=0A= >=0A= >=0A= > But when I launch the secondary process, I get "RING: Cannot reserve memo= ry". I modified the message to get the rte_errno, which is 17, File exists.= This also happens with testpmd.=0A= =0A= Memory can not be allocated in the secondary process, but must request it f= rom the primary. Is this the problem?=0A= =0A= >=0A= >=0A= > I'm using DPDK 18.08. Using the ring API directly works without any probl= em. But I'd like to use the vdev one to build functional tests.=0A= >=0A= >=0A= > I tried with the TAP pmd, the device is not available in the secondary pr= ocess (rte_eth_dev_count_avail() is 0).=0A= >=0A= >=0A= > Thanks,=0A= >=0A= > Tom=0A= =0A= Regards,=0A= Keith=0A= =0A=