Re: [dpdk-dev] [PATCH] cmdline: fix dynamic tokens parsing

2018-01-19 Thread Xueming(Steven) Li
Sorry, sent wrong patch, please ignore this one. > -Original Message- > From: Xueming(Steven) Li > Sent: Saturday, January 20, 2018 10:30 AM > To: Xueming(Steven) Li ; Olivier MATZ > > Cc: dev@dpdk.org; Adrien Mazarguil ; > sta...@dpdk.org > Subject: RE: [PATCH] cmdline: fix dynamic token

Re: [dpdk-dev] [PATCH] cmdline: fix dynamic tokens parsing

2018-01-19 Thread Xueming(Steven) Li
Hi Olivier, Almost forgot this one, my original proposal for CLI issue. Split out according to your suggestion. Thanks, Xueming > -Original Message- > From: Xueming Li [mailto:xuemi...@mellanox.com] > Sent: Saturday, January 20, 2018 10:26 AM > To: Olivier MATZ > Cc: Xueming(Steven) Li

[dpdk-dev] [PATCH] cmdline: fix dynamic tokens parsing

2018-01-19 Thread Xueming Li
When using dynamic tokens, the result buffer contains pointers to some location inside the result buffer. When the content of the temporary buffer is copied in the final one, these pointers still point to the temporary buffer. This works until the temporary buffer is kept intact, but the next comm