Re: [dpdk-dev] [PATCH 1/4] test/stack: avoid trivial memory allocations

2020-08-11 Thread Eads, Gage
> -Original Message- > From: Honnappa Nagarahalli > Sent: Tuesday, August 11, 2020 3:50 PM > To: Stephen Hemminger ; Eads, Gage > > Cc: Steven Lariau ; Olivier Matz > ; dev@dpdk.org; Dharmik Thakkar > ; nd ; Honnappa Nagarahalli > ; nd > Subject: RE: [dp

Re: [dpdk-dev] [PATCH 1/4] test/stack: avoid trivial memory allocations

2020-08-11 Thread Honnappa Nagarahalli
> > > > > > Replace the arguments array by one argument. > > > All objects in the args array have the same values, so there is no > > > need to use an array, only one struct is enough. > > > The args object is a lot smaller, and the allocation can be replaced > > > with a stack variable. > > > >

Re: [dpdk-dev] [PATCH 1/4] test/stack: avoid trivial memory allocations

2020-08-11 Thread Stephen Hemminger
On Tue, 11 Aug 2020 20:13:24 + "Eads, Gage" wrote: > Hi Steven, > > > -Original Message- > > From: Steven Lariau > > Sent: Wednesday, August 5, 2020 10:57 AM > > To: Eads, Gage ; Olivier Matz > > > > Cc: dev@dpdk.org; honnappa.nagaraha...@arm.com; > > dharmik.thak...@arm.com; n...@

Re: [dpdk-dev] [PATCH 1/4] test/stack: avoid trivial memory allocations

2020-08-11 Thread Eads, Gage
Hi Steven, > -Original Message- > From: Steven Lariau > Sent: Wednesday, August 5, 2020 10:57 AM > To: Eads, Gage ; Olivier Matz > > Cc: dev@dpdk.org; honnappa.nagaraha...@arm.com; > dharmik.thak...@arm.com; n...@arm.com; Steven Lariau > > Subject: [PATCH 1/4] test/stack: avoid trivial

[dpdk-dev] [PATCH 1/4] test/stack: avoid trivial memory allocations

2020-08-06 Thread Steven Lariau
Replace the arguments array by one argument. All objects in the args array have the same values, so there is no need to use an array, only one struct is enough. The args object is a lot smaller, and the allocation can be replaced with a stack variable. The allocation of obj_table isn't needed eith

[dpdk-dev] [PATCH 1/4] test/stack: avoid trivial memory allocations

2020-08-05 Thread Steven Lariau
Replace the arguments array by one argument. All objects in the args array have the same values, so there is no need to use an array, only one struct is enough. The args object is a lot smaller, and the allocation can be replaced with a stack variable. The allocation of obj_table isn't needed eith