[dpdk-dev,v2] app/testpmd: fix exit without freeing resources
Checks
Commit Message
When testpmd exists, it frees the acquired resources (e.g. stop ports).
However, when we terminate it by Ctrl-d, testpmd exists directly without
releasing the resources. In this patch, we fix this exit issue.
Fixes:af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
---
changes in v2:
- Change title and add the bug release
app/test-pmd/testpmd.c | 1 +
1 file changed, 1 insertion(+)
Comments
> -----Original Message-----
> From: Hu, Jiayu
> Sent: Friday, April 28, 2017 9:33 AM
> To: dev@dpdk.org
> Cc: Wu, Jingjing; stable@dpdk.org; Tan, Jianfeng; Hu, Jiayu
> Subject: [PATCH v2] app/testpmd: fix exit without freeing resources
>
> When testpmd exists, it frees the acquired resources (e.g. stop ports).
> However, when we terminate it by Ctrl-d, testpmd exists directly without
> releasing the resources. In this patch, we fix this exit issue.
>
> Fixes:af75078fece3 ("first public release")
> Cc: stable@dpdk.org
>
> Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
Thanks,
Jianfeng
28/04/2017 04:02, Tan, Jianfeng:
> From: Hu, Jiayu
> >
> > When testpmd exists, it frees the acquired resources (e.g. stop ports).
> > However, when we terminate it by Ctrl-d, testpmd exists directly without
> > releasing the resources. In this patch, we fix this exit issue.
> >
> > Fixes:af75078fece3 ("first public release")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
>
> Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
Applied, thanks
@@ -2289,6 +2289,7 @@ main(int argc, char** argv)
start_packet_forwarding(0);
}
prompt();
+ pmd_test_exit();
} else
#endif
{