From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 6ABA39231 for ; Mon, 5 Oct 2015 19:57:43 +0200 (CEST) Received: by wiclk2 with SMTP id lk2so126097460wic.1 for ; Mon, 05 Oct 2015 10:57:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1brXhF7654illyh6hNhd3lAuwyRGJ/C+ONt+tdEXwPI=; b=S2qf1s1Rbw751OzV+RnSsccAGVZriww//UyB/eq2Gp+0Tp77AjOWBcqUyLwLfieNZY h7YEisWkcc8TgQkem6HpAKQ5HVrFNahF94iuB2DsZnVhocFI9JsGECUBuzVuAGeapAuF AtrR3NmCqbaacCXEjcrg109NL9D0G+LyY3r0i6JtxXlFAq5m0WGLbzbe8qZf13ptq7nL eX1RpvzPObLGBoIEfk3eie4ACn53pTnVbOPgnXELor62FuJqruPxS2KSWCpGpyn7eVOt PKRg3Pfx4o/16jmmt/qbgTynbPGhiex1x0cq3mvZCec5deludl+A+y69jKK+Lpylt9mQ EeYA== X-Gm-Message-State: ALoCoQk3T8c0nSNFwuBAsRJ/CwAI2sc+bTWPTczzeFNyHJqRJelJVtyKPLcLfNM4DojS9K+pTqVP X-Received: by 10.180.23.134 with SMTP id m6mr13749968wif.32.1444067863342; Mon, 05 Oct 2015 10:57:43 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id kr10sm28084391wjc.25.2015.10.05.10.57.42 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 Oct 2015 10:57:42 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Mon, 5 Oct 2015 19:57:20 +0200 Message-Id: <1444067842-29832-2-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1444067842-29832-1-git-send-email-adrien.mazarguil@6wind.com> References: <1444067842-29832-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 1/3] cmdline: increase command line buffer X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2015 17:57:43 -0000 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