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

2022-03-07 Thread Thomas Monjalon
01/03/2022 21:32, 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")

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

2022-03-01 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 Acked-by: St