From: Bruce Richardson Subject: Re: [PATCH] net/i40e: Improve i40evf buffer cleanup in tx vector mode Date: Fri, 6 Oct 2017 09:54:04 +0100 Message-ID: <20171006085403.GA24124@bricha3-MOBL3.ger.corp.intel.com> References: <20171005191111.27557-1-rmelton@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: jingjing.wu@intel.com, dev@dpdk.org To: Roger B Melton Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DACC21B28D for ; Fri, 6 Oct 2017 10:54:07 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20171005191111.27557-1-rmelton@cisco.com> 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 Thu, Oct 05, 2017 at 03:11:11PM -0400, Roger B Melton wrote: > --- > > i40evf tx vector logic frees mbufs, but it does not remove the > mbufs from software rings which leads to double frees. This change > corrects that oversight. We've validated this fix within our application. > Hi Roger, I'm a little concerned here by this driver fix, since if we are getting double frees of mbufs there must be another bug somewhere in tracking the free ring elements. Clearing the entries to NULL introduces extra writes to the vector code path which will likely have a performance impact, but also should be unnecessary, given proper tracking of the ring status. Can you provide us with some details as to how to reproduce the issue, especially with a public sample app? I'd really like to look more into why this is happening, and if other fixes may work. Thanks, /Bruce