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 4E401A0471 for ; Mon, 17 Jun 2019 16:43:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1E7531BEE8; Mon, 17 Jun 2019 16:42:59 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id A67221BEE4 for ; Mon, 17 Jun 2019 16:42:57 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 199C52F8BCA; Mon, 17 Jun 2019 14:42:50 +0000 (UTC) Received: from [10.36.112.44] (ovpn-112-44.ams2.redhat.com [10.36.112.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3D5989839; Mon, 17 Jun 2019 14:42:46 +0000 (UTC) To: Tiwei Bie , zhihong.wang@intel.com, dev@dpdk.org References: <20190605094342.17563-1-tiwei.bie@intel.com> <20190605094342.17563-5-tiwei.bie@intel.com> From: Maxime Coquelin Message-ID: Date: Mon, 17 Jun 2019 16:42:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190605094342.17563-5-tiwei.bie@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 17 Jun 2019 14:42:55 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH 4/5] net/virtio: release port upon close 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" On 6/5/19 11:43 AM, Tiwei Bie wrote: > Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private > resources for the port can be freed by rte_eth_dev_close(). > > Signed-off-by: Tiwei Bie > --- > drivers/net/virtio/virtio_ethdev.c | 42 ++++++++++++------- > .../net/virtio/virtio_user/virtio_user_dev.h | 1 - > drivers/net/virtio/virtio_user_ethdev.c | 12 ++---- > 3 files changed, 31 insertions(+), 24 deletions(-) Reviewed-by: Maxime Coquelin Thanks, Maxime