From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by dpdk.org (Postfix) with ESMTP id 1626311A2 for ; Tue, 14 Jul 2015 20:28:03 +0200 (CEST) Received: by padck2 with SMTP id ck2so9630985pad.0 for ; Tue, 14 Jul 2015 11:28:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=8MaTuirQrG2ayZcebZdVXD9z1mvbB6+5Kbkg+aEx2Do=; b=M1iVQLfTEYImNtZPI+Fcm0/zFRLIACBa7qSyPpxIChyn1sYIIl8vyXTJ7UYCw4MJ5i ddbIc/GSi4M6H9Tat1XuMVKif04M6MEc/D6PQ5prfbUPb+orSiwTNOEEFSnbYh8SMKjW phlqgn0GaWs2by++R9MtRScECFSAPMgYeU3lstqNkHImCdS1+FEWoX6IgfMfQ21NT9ZQ kMfoHyHh9omW/eQaYafTLRqgGVZysMn4pvQBxEztFQ8SF9JSfPWj9uJhGVFVRgbpTr4u Aa2dYXYtJ0qGhUIM85Q5lpvt29AUreYVy9khxvTzBjGRHUK2GUzCjpjGm/YH+jXX2010 bkvg== X-Gm-Message-State: ALoCoQn+j3H3SM9koTv3zGoh232gRmtqEytxkb9txRgbizr6XWBCG3lQ87FLLYZQn05P3GBVe83i X-Received: by 10.68.65.16 with SMTP id t16mr82259007pbs.47.1436898482441; Tue, 14 Jul 2015 11:28:02 -0700 (PDT) Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id da2sm2070661pbb.57.2015.07.14.11.28.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 11:28:02 -0700 (PDT) Date: Tue, 14 Jul 2015 11:28:10 -0700 From: Stephen Hemminger To: Bernard Iremonger Message-ID: <20150714112810.1319eddd@urahara> In-Reply-To: <1436879459-18400-5-git-send-email-bernard.iremonger@intel.com> References: <1436879459-18400-1-git-send-email-bernard.iremonger@intel.com> <1436879459-18400-5-git-send-email-bernard.iremonger@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 4/5] virtio: free queue memory in virtio_dev_close() 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, 14 Jul 2015 18:28:03 -0000 On Tue, 14 Jul 2015 14:10:58 +0100 Bernard Iremonger wrote: > static void > +virtio_free_queues(struct rte_eth_dev *dev) > +{ > + unsigned int i; > + > + for (i = 0; i < dev->data->nb_rx_queues; i++) { > + virtio_dev_rx_queue_release(dev->data->rx_queues[i]); > + dev->data->rx_queues[i] = NULL; > + } > + dev->data->nb_rx_queues = 0; > + > + for (i = 0; i < dev->data->nb_tx_queues; i++) { > + virtio_dev_tx_queue_release(dev->data->tx_queues[i]); > + dev->data->tx_queues[i] = NULL; > + } > + dev->data->nb_tx_queues = 0; > +} > + Where does command queue get freed?