From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: [PATCH v2 1/3] cmdline: increase command line buffer Date: Fri, 30 Oct 2015 19:58:55 +0100 Message-ID: <1446231537-8380-2-git-send-email-adrien.mazarguil@6wind.com> References: <1444067842-29832-1-git-send-email-adrien.mazarguil@6wind.com> <1446231537-8380-1-git-send-email-adrien.mazarguil@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 6F0AD93A8 for ; Fri, 30 Oct 2015 19:59:24 +0100 (CET) Received: by wmeg8 with SMTP id g8so18865426wme.1 for ; Fri, 30 Oct 2015 11:59:24 -0700 (PDT) In-Reply-To: <1446231537-8380-1-git-send-email-adrien.mazarguil@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Nelio Laranjeiro For RETA query/update with a table of 512 entries, buffers are too small to handle the request. Signed-off-by: Nelio Laranjeiro --- lib/librte_cmdline/cmdline_parse.h | 2 +- lib/librte_cmdline/cmdline_parse_string.h | 2 +- lib/librte_cmdline/cmdline_rdline.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_cmdline/cmdline_parse.h b/lib/librte_cmdline/cmdline_parse.h index 4b25c45..89b28b1 100644 --- a/lib/librte_cmdline/cmdline_parse.h +++ b/lib/librte_cmdline/cmdline_parse.h @@ -81,7 +81,7 @@ extern "C" { #define CMDLINE_PARSE_COMPLETED_BUFFER 2 /* maximum buffer size for parsed result */ -#define CMDLINE_PARSE_RESULT_BUFSIZE 8192 +#define CMDLINE_PARSE_RESULT_BUFSIZE 65536 /** * Stores a pointer to the ops struct, and the offset: the place to diff --git a/lib/librte_cmdline/cmdline_parse_string.h b/lib/librte_cmdline/cmdline_parse_string.h index c205622..61e0627 100644 --- a/lib/librte_cmdline/cmdline_parse_string.h +++ b/lib/librte_cmdline/cmdline_parse_string.h @@ -66,7 +66,7 @@ extern "C" { #endif /* size of a parsed string */ -#define STR_TOKEN_SIZE 128 +#define STR_TOKEN_SIZE 8192 typedef char cmdline_fixed_string_t[STR_TOKEN_SIZE]; diff --git a/lib/librte_cmdline/cmdline_rdline.h b/lib/librte_cmdline/cmdline_rdline.h index b9aad9b..07f8faa 100644 --- a/lib/librte_cmdline/cmdline_rdline.h +++ b/lib/librte_cmdline/cmdline_rdline.h @@ -93,7 +93,7 @@ extern "C" { #endif /* configuration */ -#define RDLINE_BUF_SIZE 256 +#define RDLINE_BUF_SIZE 16384 #define RDLINE_PROMPT_SIZE 32 #define RDLINE_VT100_BUF_SIZE 8 #define RDLINE_HISTORY_BUF_SIZE BUFSIZ -- 2.1.0