From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Simon_K=c3=a5gstr=c3=b6m?= Subject: Re: [PATCH] rte_sched: release enqueued mbufs on rte_sched_port_free() Date: Tue, 17 Nov 2015 08:53:17 +0100 Message-ID: <564ADCED.2050100@netinsight.net> References: <20151028105633.6a507c98@miho> <20151104101426.2f771b45@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Stephen Hemminger Return-path: Received: from ernst.netinsight.se (ernst.netinsight.se [194.16.221.21]) by dpdk.org (Postfix) with SMTP id 9C52858D4 for ; Tue, 17 Nov 2015 08:53:19 +0100 (CET) In-Reply-To: <20151104101426.2f771b45@xeon-e3> 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 2015-11-04 19:14, Stephen Hemminger wrote: > On Wed, 28 Oct 2015 10:56:33 +0100 > Simon Kagstrom wrote: > >> Otherwise mbufs will leak when the port is destroyed. The >> rte_sched_port_qbase() and rte_sched_port_qsize() functions are used >> in free now, so move them up. >> >> Signed-off-by: Simon Kagstrom > > Overall it looks good, and fixes a long standing bug. > Maybe good to expose it as a API function rte_sched_port_flush > to allow use from applications. I'm sorry, I missed this reply! I will fix the issues you point to and repost. // Simon