[dpdk-stable] [PATCH v2] app/testpmd: fix exit without freeing	resources
    Jiayu Hu 
    jiayu.hu at intel.com
       
    Fri Apr 28 03:32:50 CEST 2017
    
    
  
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 at dpdk.org
Signed-off-by: Jiayu Hu <jiayu.hu at intel.com>
---
changes in v2:
- Change title and add the bug release
 app/test-pmd/testpmd.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 3a57348..94cefc0 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -2289,6 +2289,7 @@ main(int argc, char** argv)
 			start_packet_forwarding(0);
 		}
 		prompt();
+		pmd_test_exit();
 	} else
 #endif
 	{
-- 
2.7.4
    
    
More information about the stable
mailing list