From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from compass.polito.it (compass.polito.it [130.192.55.110]) by dpdk.org (Postfix) with ESMTP id A58C08D94 for ; Tue, 2 Feb 2016 02:37:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by compass.polito.it (Postfix) with ESMTP id 6879610011A for ; Tue, 2 Feb 2016 02:37:24 +0100 (CET) Authentication-Results: compass.polito.it (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=studenti.polito.it DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= studenti.polito.it; h=content-type:content-type:to:from:from :subject:subject:message-id:date:date:received:mime-version :received:received:received; s=y2k10; t=1454377043; bh=7pKVINXhs vAlEHsLtvmDF7ypZYamTATVi7/tsRgjCf4=; b=NdMfsDkGRQBfhjTJbA1bGSWg1 kJxR6D7yHF6CD71gUBzCJZqIy96nYKUDzu8IZZa+d9WE/g+m3ihMsy+1X6ylIDxb Ylfxpj0uoIFwjBY1HijRCU67a+ijYdJuimLEzjONFo/wqI4m8Oi89ll8iov1OIs7 8C7APTXHBRdBNpcNvk= X-Virus-Scanned: amavisd-new at studenti.polito.it X-Spam-Flag: NO X-Spam-Score: -5.849 X-Spam-Level: X-Spam-Status: No, score=-5.849 tagged_above=-100 required=3.5 tests=[ALL_TRUSTED=-5, AWL=0.650, BAYES_00=-1.5, HTML_MESSAGE=0.001] autolearn=ham Received: from compass.polito.it ([127.0.0.1]) by localhost (compass.polito.it [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id A9CoLYOHFlZv for ; Tue, 2 Feb 2016 02:37:23 +0100 (CET) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: s203403@studenti.polito.it) by compass.polito.it (Postfix) with ESMTPSA id 73B5D100114 for ; Tue, 2 Feb 2016 02:37:23 +0100 (CET) Received: by mail-lb0-f180.google.com with SMTP id bc4so85631147lbc.2 for ; Mon, 01 Feb 2016 17:37:23 -0800 (PST) X-Gm-Message-State: AG10YOS2l8qTlIz3Shls+VYM3ExCM4ktCTxn2WrfZr/TY5407hTbDyuzdQVY7wMrhn17dpVfDdFaRrT56dhqMQ== MIME-Version: 1.0 X-Received: by 10.112.181.196 with SMTP id dy4mr9721509lbc.42.1454377043120; Mon, 01 Feb 2016 17:37:23 -0800 (PST) Received: by 10.25.23.208 with HTTP; Mon, 1 Feb 2016 17:37:23 -0800 (PST) Date: Mon, 1 Feb 2016 20:37:23 -0500 X-Gmail-Original-Message-ID: Message-ID: From: =?UTF-8?Q?Mauricio_V=C3=A1squez?= To: dev@dpdk.org, Bruce Richardson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] rings PMD detaching X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2016 01:37:25 -0000 Hello Everybody, I was wondering if there were a way to detach (delete) a ring pmd device created with rte_eth_from_rings. I realized that rte_eth_dev_detach does not work in this case because there is a comparison between the device's name and the driver's name in rte_eal_vdev_uninit, then devices created with arbitrary names can not be uninitialized. My question is how to implement it?, I have two ideas on mind: - make rte_pmd_ring_devuninit a public function, then the user can call this using as argument the name of the device. - modify rte_eal_vdev_uninit in such a way that there is not any comparison based on the dev name, probably it will require to add some extra field in the rte_eth_dev structure to distinguish between the different virtual devices. Any idea or comment about it? Thank you very much