cmdline: increase commandline buffer size to 512
PATCH 1/1 cmdline: increase commandline buffer size to 512
Increase commandline buffer size to 512 to allow for longer commandlines required by testpmd when dealing with flow director and IPv6 addresses.
--- lib/librte_cmdline/cmdline_rdline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_cmdline/cmdline_rdline.h +1 -1
@@ -93,7 +93,7 @@ extern "C" {#endif /* configuration */ -#define RDLINE_BUF_SIZE 256 +#define RDLINE_BUF_SIZE 512#define RDLINE_PROMPT_SIZE 32#define RDLINE_VT100_BUF_SIZE 8#define RDLINE_HISTORY_BUF_SIZE BUFSIZ
Signature · 1 line
1.8.1.4
Quoted 25 lines · John McNamara
Increase commandline buffer size to 512 to allow for longer commandlines required by testpmd when dealing with flow director and IPv6 addresses.
Signed-off-by John McNamara <[email protected]>--- lib/librte_cmdline/cmdline_rdline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_cmdline/cmdline_rdline.h +1
-1@@ -93,7 +93,7 @@ extern "C" {#endif /* configuration */ -#define RDLINE_BUF_SIZE 256 +#define RDLINE_BUF_SIZE 512#define RDLINE_PROMPT_SIZE 32#define RDLINE_VT100_BUF_SIZE 8#define RDLINE_HISTORY_BUF_SIZE BUFSIZSignature · 1 line
1.8.1.4
I have faced the same issue. For some commands this value is still too low. For example, RETA update can not be used, the command line limits he configuration to 34 entries.
See http://dpdk.org/ml/archives/dev/2015-October/024681.html
and particularly
http://dpdk.org/ml/archives/dev/2015-October/024682.html
It was too late to announce an ABI change so we left out the cmdline size update.
Olivier, Thomas, what do you think about this? It seems this is really blocking.
Signature · 2 lines
Nélio Laranjeiro 6WIND
Quoted 30 lines
-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: Thursday, November 5, 2015 4:51 PM
To: Mcnamara, John; Olivier Matz; Thomas Monjalon
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] cmdline: increase commandline buffer size to 512lib/librte_cmdline/cmdline_rdline.h extern "C" { · line 96
Quoted 10 lines · John McNamara
Increase commandline buffer size to 512 to allow for longer commandlines required by testpmd when dealing with flow director and IPv6 addresses.
...
/* configuration */
lib/librte_cmdline/cmdline_rdline.h +1
-1-#define RDLINE_BUF_SIZE 256 +#define RDLINE_BUF_SIZE 512I have faced the same issue. For some commands this value is still too low. For example, RETA update can not be used, the command line limits he configuration to 34 entries.
See http://dpdk.org/ml/archives/dev/2015-October/024681.html
and particularly
http://dpdk.org/ml/archives/dev/2015-October/024682.html
Quoted 5 lines
It was too late to announce an ABI change so we left out the cmdline size update.
Olivier, Thomas, what do you think about this? It seems this is really blocking.
Hi,
Since the change breaks ABI I'll self nack.
However, this is something that should be fixed since it will affect any DPDK application with a long commandline.
I can put a warning of future ABI breakage in the release notes but I see that there are other #defines that you need to increase in your patchset so do you want to submit the ABI deprecation notice?
John.
Quoted 38 lines · John
Quoted 30 lines
-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: Thursday, November 5, 2015 4:51 PM
To: Mcnamara, John; Olivier Matz; Thomas Monjalon
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] cmdline: increase commandline buffer size to 512lib/librte_cmdline/cmdline_rdline.h extern "C" { · line 96
Quoted 10 lines · John McNamara
Increase commandline buffer size to 512 to allow for longer commandlines required by testpmd when dealing with flow director and IPv6 addresses.
...
/* configuration */
lib/librte_cmdline/cmdline_rdline.h +1
-1-#define RDLINE_BUF_SIZE 256 +#define RDLINE_BUF_SIZE 512I have faced the same issue. For some commands this value is still too low. For example, RETA update can not be used, the command line limits he configuration to 34 entries.
See http://dpdk.org/ml/archives/dev/2015-October/024681.html
and particularly
http://dpdk.org/ml/archives/dev/2015-October/024682.htmlQuoted 5 lines
It was too late to announce an ABI change so we left out the cmdline size update.
Olivier, Thomas, what do you think about this? It seems this is really blocking.
Hi,
Quoted 8 lines
Since the change breaks ABI I'll self nack.
However, this is something that should be fixed since it will affect any DPDK application with a long commandline.
I can put a warning of future ABI breakage in the release notes but I see that there are other #defines that you need to increase in your patchset so do you want to submit the ABI deprecation notice?
John.
Hi John,
I will do it, I have another depreciation related to RETA.
Thanks.
Signature · 2 lines
Nélio Laranjeiro 6WIND