RE: [PATCH v3] sched: remove useless malloc in pie data init

2022-03-01 Thread Dumitrescu, Cristian
> -Original Message- > From: Stephen Hemminger > Sent: Tuesday, March 1, 2022 5:08 PM > To: Weiguo Li > Cc: Dumitrescu, Cristian ; Singh, Jasvinder > ; wojciechx.liguzin...@intel.com; dev@dpdk.org > Subject: Re: [PATCH v3] sched: remove useless malloc in pie data

Re: [PATCH v3] sched: remove useless malloc in pie data init

2022-03-01 Thread Stephen Hemminger
On Tue, 1 Mar 2022 14:07:56 +0800 Weiguo Li wrote: > 'rte_pie_rt_data_init(NULL)' is not expected, and it's ought to > fail when this happen. The malloc inside the function didn't work. > So remove the malloc otherwise will lead to a memory leak. > > Fixes: 44c730b0e37971 ("sched: add PIE based

[PATCH v3] sched: remove useless malloc in pie data init

2022-02-28 Thread Weiguo Li
'rte_pie_rt_data_init(NULL)' is not expected, and it's ought to fail when this happen. The malloc inside the function didn't work. So remove the malloc otherwise will lead to a memory leak. Fixes: 44c730b0e37971 ("sched: add PIE based congestion management") Signed-off-by: Weiguo Li --- v3: * fi