From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergio Gonzalez Monroy Subject: Re: [PATCH v3 1/1] eal/linux: change hugepage sorting to avoid overlapping memcpy Date: Thu, 7 Jan 2016 09:33:55 +0000 Message-ID: <568E3103.9060707@intel.com> References: <55EEEF99.2000708@intel.com> <1451986625-16645-1-git-send-email-ralf.hoffmann@allegro-packets.com> <1451986625-16645-2-git-send-email-ralf.hoffmann@allegro-packets.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Ralf Hoffmann Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 843A79580 for ; Thu, 7 Jan 2016 10:33:58 +0100 (CET) In-Reply-To: <1451986625-16645-2-git-send-email-ralf.hoffmann@allegro-packets.com> 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 05/01/2016 09:37, Ralf Hoffmann wrote: > with only one hugepage or already sorted hugepage addresses, the sort > function called memcpy with same src and dst pointer. Debugging with > valgrind will issue a warning about overlapping area. This patch > changes the sort method to qsort to avoid this behavior, according to > original patch from Jay Rolette . The separate > sort function is no longer necessary. > > Signed-off-by: Ralf Hoffmann > --- > Acked-by: Sergio Gonzalez Monroy