From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4] KNI: use a memzone pool for KNI alloc/release Date: Tue, 21 Oct 2014 10:29:36 +0200 Message-ID: <11046523.OQamTbecJT@xps13> References: <1413586289-6694-1-git-send-email-marc.sune@bisdn.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Marc Sune Return-path: In-Reply-To: <1413586289-6694-1-git-send-email-marc.sune-kpkqNMk1I7M@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Marc, 2014-10-18 00:51, Marc Sune: > This patch implements the KNI memzone pool in order to prevent > memzone exhaustion when allocating/deallocating KNI interfaces. > > It adds a new API call, rte_kni_init(max_kni_ifaces) that shall > be called before any call to rte_kni_alloc() if KNI is used. > > v2: Moved KNI fd opening to rte_kni_init(). Revised style. > v3: Adapted kni examples/tests to rte_kni_init(). > v4: Improved example integration. Fixed kni_memzone_pool_alloc/release() bug. > > Signed-off-by: Marc Sune Thanks for the good work with Helin. Before applying this patch, I'd like another version explaining in the commit log why this change is needed. And please use to checkpatch.pl to check and remove whitespace errors. Thanks -- Thomas