From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH] app/testpmd: workaround softnic CLI modifications Date: Wed, 25 Jul 2018 10:21:25 +0200 Message-ID: <3391330.dETbu75WYu@xps> References: <1532449282-9352-1-git-send-email-motih@mellanox.com> <3EB4FA525960D640B5BDFFD6A3D891268E779325@IRSMSX107.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: stable@dpdk.org, "dev@dpdk.org" , "Singh, Jasvinder" To: "Dumitrescu, Cristian" , Moti Haimovsky Return-path: In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D891268E779325@IRSMSX107.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 24/07/2018 19:39, Dumitrescu, Cristian: > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Moti Haimovsky > > Sent: Tuesday, July 24, 2018 5:21 PM > > To: thomas@monjalon.net > > Cc: dev@dpdk.org; stable@dpdk.org; Moti Haimovsky > > > > Subject: [dpdk-dev] [PATCH] app/testpmd: workaround softnic CLI > > modifications > > > > This patch returns the previous testpmd command line handling > > routines (namely cmdline_interact and cmdline_stdin_exit) to the > > prompt routine in order to overcome testpmd abnormal exit observed on > > several setups. > > These routines will only by used when testpmd is compiled without > > support for RTE_LIBRTE_PMD_SOFTNIC > > > > Fixes: 0ad778b398c6 ("app/testpmd: rework softnic forward mode") > > Cc: stable@dpdk.org > > > > Signed-off-by: Moti Haimovsky > > --- > > app/test-pmd/cmdline.c | 18 +++++++++--------- > > 1 file changed, 9 insertions(+), 9 deletions(-) > > > > We should probably fix the issue in the cmdline library to bring cmdline_poll() on parity with cmdline_interact(), but this is a decent workaround to avoid breaking those automation scripts that rely on Ctrl+D behavior. This workaround works only when disabling softnic. It means: 1/ softnic usage is not fixed 2/ we need to disable softnic for all other usages I think it is not good enough.