Re: [PATCH v2] app/test: fix stack overflow in lpm6_perf_autotest

2024-12-18 Thread Andre Muezerie
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) *

Re: [PATCH v2] app/test: fix stack overflow in lpm6_perf_autotest

2024-12-13 Thread Stephen Hemminger
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

[PATCH v2] app/test: fix stack overflow in lpm6_perf_autotest

2024-12-13 Thread Andre Muezerie
Test lpm6_perf_autotest was hitting a stack overflow on Windows with both MSVC and Clang. The fix is to move some of the data from the stack to the heap. Signed-off-by: Andre Muezerie --- app/test/test_lpm6_perf.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git