[dpdk-dev] [PATCH] net/softnic: fix memory leak of meter policy

2021-09-30 Thread dapengx . yu
From: Dapeng Yu After the meter policies are created, they are not freed on device close. This patch fixes it. Fixes: 5f0d54f372f0 ("ethdev: add pre-defined meter policy API") Cc: sta...@dpdk.org Signed-off-by: Dapeng Yu --- drivers/net/softnic/rte_eth_softnic_meter.c | 12 1 fi

Re: [dpdk-dev] [PATCH] net/softnic: fix memory leak as profile is freed

2021-07-14 Thread Singh, Jasvinder
> -Original Message- > From: Yu, DapengX > Sent: Tuesday, July 13, 2021 9:27 AM > To: Singh, Jasvinder ; Dumitrescu, Cristian > > Cc: dev@dpdk.org; Yu, DapengX ; sta...@dpdk.org > Subject: [PATCH] net/softnic: fix memory leak as profile is freed > > From: Dapeng Yu > > In function s

Re: [dpdk-dev] [PATCH] net/softnic: fix memory leak in connection init

2021-07-13 Thread Andrew Rybchenko
On 7/9/21 9:00 AM, dapengx...@intel.com wrote: > From: Dapeng Yu > > In function softnic_conn_init(), a block of memory is allocated as > connection buffer, but it is never freed in softnic_conn_free(), > which cause memory leak. > > This patch fixes it. > > Fixes: 7709a63bf178 ("net/softnic: a

Re: [dpdk-dev] [PATCH] net/softnic: fix memory leak in parsing arguments

2021-07-13 Thread Andrew Rybchenko
@Jasvinder, @Cristian, could you the patch, please. On 7/8/21 11:44 AM, dapengx...@intel.com wrote: > From: Dapeng Yu > > In function pmd_parse_args(), firmware path is duplicated from device > arguments as character string, but is never freed, which cause memory > leak. > > This patch changes

[dpdk-dev] [PATCH] net/softnic: fix memory leak as profile is freed

2021-07-13 Thread dapengx . yu
From: Dapeng Yu In function softnic_table_action_profile_free(), the memory referenced by pointer "ap" in the instance of "struct softnic_table_action_profile" is not freed. This patch fixes it. Fixes: a737dd4e5863 ("net/softnic: add table action profile") Cc: sta...@dpdk.org Signed-off-by: Da

[dpdk-dev] [PATCH] net/softnic: fix memory leak in connection init

2021-07-08 Thread dapengx . yu
From: Dapeng Yu In function softnic_conn_init(), a block of memory is allocated as connection buffer, but it is never freed in softnic_conn_free(), which cause memory leak. This patch fixes it. Fixes: 7709a63bf178 ("net/softnic: add connection agent") Cc: sta...@dpdk.org Signed-off-by: Dapeng

[dpdk-dev] [PATCH] net/softnic: fix memory leak in parsing arguments

2021-07-08 Thread dapengx . yu
From: Dapeng Yu In function pmd_parse_args(), firmware path is duplicated from device arguments as character string, but is never freed, which cause memory leak. This patch changes the type of firmware member of struct pmd_params to character array, to make memory resource release unnecessary, a

[dpdk-dev] [PATCH] net/softnic: fix memory leak

2020-04-27 Thread Jasvinder Singh
When sending request messages to data plane thread, the caller must free the memory allocated to request message on receiving error response. Coverity Issue: 357717, 357772 Fixes: 70709c78fda6 ("net/softnic: add command to enable/disable pipeline") Signed-off-by: Jasvinder Singh --- drivers/net