From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3D2CD957F for ; Thu, 7 Jan 2016 11:38:54 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 07 Jan 2016 02:38:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,532,1444719600"; d="scan'208";a="25077077" Received: from smonroyx-mobl.ger.corp.intel.com (HELO [10.237.220.54]) ([10.237.220.54]) by fmsmga004.fm.intel.com with ESMTP; 07 Jan 2016 02:38:53 -0800 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> <568E3527.2080302@intel.com> From: Sergio Gonzalez Monroy Message-ID: <568E403B.7040002@intel.com> Date: Thu, 7 Jan 2016 10:38:51 +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: <568E3527.2080302@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 10:38:54 -0000 On 07/01/2016 09:51, Sergio Gonzalez Monroy wrote: > 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 Just FYI, there is a new DPDK Contributors guide: http://dpdk.org/doc/guides/contributing/patches.html Regards, Sergio