[PATCH v2] app/test: fix stack overflow in lpm6_perf_autotest
    Andre Muezerie 
    andremue at linux.microsoft.com
       
    Wed Dec 18 16:12:06 CET 2024
    
    
  
On Fri, Dec 13, 2024 at 09:15:40AM -0800, Stephen Hemminger wrote:
> On Fri, 13 Dec 2024 09:08:22 -0800
> Andre Muezerie <andremue at linux.microsoft.com> 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.
    
    
More information about the dev
mailing list