From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH] virtio: fix memory leak of virtqueue memzones Date: Wed, 27 Apr 2016 20:29:30 -0700 Message-ID: <20160428032930.GA11064@yliu-dev.sh.intel.com> References: <1461673932-128879-1-git-send-email-jianfeng.tan@intel.com> <20160427223753.GB25677@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, huawei.xie@intel.com To: "Tan, Jianfeng" Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 92743530C for ; Thu, 28 Apr 2016 05:26:57 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Apr 28, 2016 at 10:01:06AM +0800, Tan, Jianfeng wrote: > >>+ > >>+ snprintf(vq_name, sizeof(vq_name), "port%d_%s%d", > >>+ dev->data->port_id, queue_names[queue_type], queue_idx); > >>+ vq = rte_zmalloc(vq_name, sizeof(struct virtqueue) + > >>+ vq_size * sizeof(struct vq_desc_extra), > >>+ RTE_CACHE_LINE_SIZE); > >This is a cleanup, a good cleanup. So, make a patch for that, and do > >NOT mix cleanup and fix in one single patch, which is something I > >have told you quite few times, right? > > You mean submit a specific patch for cleanup or just another commit inside > this patch set? Do it as a patchset, as the two are connected: the fix should be based on the cleanup patch. --yliu