From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4DFB845EDD; Wed, 18 Dec 2024 16:12:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FE3C40DF5; Wed, 18 Dec 2024 16:12:09 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 6BC0B40DDE for ; Wed, 18 Dec 2024 16:12:07 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 6FDAA203FC69; Wed, 18 Dec 2024 07:12:06 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6FDAA203FC69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1734534726; bh=DuCFE9LKYOOiPW6YagzCBiTswvavo2wt+h/ydxtmY1o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AXUzAIzsyDEbb2nujgYePpw8SOfnPf3IR3XDEEHLWJCW2L6PiK8N5CX+9MrvWuoJi Vv6gPyeUaHxZJ5COLCnLbECD+0nsdqNoYaR67G/qqgKJLSlW3sh7xxh88WZiSS4kyu 3wK8Eqp2z8xNA3IJrT3P407rG4HBgsxFQ3B1GqDU= Date: Wed, 18 Dec 2024 07:12:06 -0800 From: Andre Muezerie To: Stephen Hemminger Cc: bruce.richardson@intel.com, dev@dpdk.org, vladimir.medvedkin@intel.com Subject: Re: [PATCH v2] app/test: fix stack overflow in lpm6_perf_autotest Message-ID: <20241218151206.GA25758@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1734057571-20367-1-git-send-email-andremue@linux.microsoft.com> <1734109702-3647-1-git-send-email-andremue@linux.microsoft.com> <20241213091540.68294d17@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241213091540.68294d17@hermes.local> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Dec 13, 2024 at 09:15:40AM -0800, Stephen Hemminger wrote: > On Fri, 13 Dec 2024 09:08:22 -0800 > Andre Muezerie wrote: > > > + struct rte_ipv6_addr *ip_batch = > > + (struct rte_ipv6_addr *)rte_malloc("ip_batch", > > + sizeof(struct rte_ipv6_addr) * NUM_IPS_ENTRIES, 0 > > Cast is not needed here. > If you are going to allocate an array, use calloc() or rte_calloc() Thanks for the comments. I'll update the patch.