From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 2079E9587 for ; Thu, 7 Jan 2016 10:51:57 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 07 Jan 2016 01:51:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,532,1444719600"; d="scan'208";a="876291047" Received: from smonroyx-mobl.ger.corp.intel.com (HELO [10.237.220.54]) ([10.237.220.54]) by fmsmga001.fm.intel.com with ESMTP; 07 Jan 2016 01:51:37 -0800 From: Sergio Gonzalez Monroy To: Ralf Hoffmann 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> <568E3103.9060707@intel.com> Message-ID: <568E3527.2080302@intel.com> Date: Thu, 7 Jan 2016 09:51:35 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <568E3103.9060707@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 1/1] eal/linux: change hugepage sorting to avoid overlapping memcpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 09:51:58 -0000 On 07/01/2016 09:33, Sergio Gonzalez Monroy wrote: > 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 Forgot to mention that there is a checkpatch warning: WARNING:LONG_LINE: line over 90 characters #113: FILE: lib/librte_eal/linuxapp/eal/eal_memory.c:1167: + qsort(&tmp_hp[hp_offset], hpi->num_pages[0], sizeof(struct hugepage_file), cmp_physaddr); Could you fix that Ralf? Thanks, Sergio