From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] hash: fix wrong size memory calculation Date: Wed, 09 Sep 2015 11:58:26 +0200 Message-ID: <1701796.JEIoX4b6vx@xps13> References: <1441027803-24765-1-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Pablo de Lara Return-path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 7D9EB567F for ; Wed, 9 Sep 2015 11:59:35 +0200 (CEST) Received: by wiclk2 with SMTP id lk2so15277776wic.1 for ; Wed, 09 Sep 2015 02:59:35 -0700 (PDT) In-Reply-To: <1441027803-24765-1-git-send-email-pablo.de.lara.guarch@intel.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" 2015-08-31 14:30, Pablo de Lara: > When calculating the size for the table which allocates > the keys, size was calculated wrongly from multiplying > two 32-bit variables, resulting on a 32-bit number, > before casting to 64-bit, so maximum size was 4G. > > Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") > > Signed-off-by: Pablo de Lara Applied, thanks