From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1brXhF7654illyh6hNhd3lAuwyRGJ/C+ONt+tdEXwPI=; b=vFjLOBcCDzJwwo/COZxDH+GNkeKJENBpJug71hQgxwapwUBmb6NXzXzsMY3vDpFpb5 VNP8cNRAItfjq7T1gKv7bU5ZXLdDZtsRoht6QRkvhIhjb+gpPKlamMgYb3F4aHKUzONZ fjkiWD+2BxR4vJtydiHkUQ6NijiLqbcDPT5lGqhPvwjIn7qKLj5dzkUy0OV/Ky9s3mVI ebQk6W154uCHfOqXrd3oMfV8FSJUzer343adxjyoahQnfJVhWyG3VzEBPSM1sfO4MpXv SxdZ3klkQleplgMdJ3DWhJkFSGWiiMLkkmF3xa6i4oepCLIieuooICP0sc/a3GywSL/B TBog== 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=ScHePdg8ACIe41DNkBYNKXcfbn1QFBEwqxYCe5rVU2VhjJxk4iMMt+9sfeAaiX7ry2 JtaNjDGkjoQGIMD5zYnWwUI7KsJkLfI6/MtEvCphPs5UhecuNHJHKXZreqxHROzoyp+L ENhqoXSacJOFWIruteWnt+SWLe3xTUKVshEXDOvdMUdgOyXEzLrW/BtWPv0BCEWzbGYD 26gorrBJksFFE+WiOBeQd9ABdIGoJ8YnLT5hcOCGuqo9i8uXsEVNI2k2G7YzH3BK8cYe rZYrVdEImT337EAb/u9ckD3jRBGQbQ2GelOy9x23NRApGCqhspCt+eR+rfloGcUe1tkZ PO0g== X-Gm-Message-State: ALoCoQkiXDSUCM9yBDXRnTFRJBBxhs2m8JkRZk+7XJbJ/4vkkoEM/AhYEhLxO4fhYrTfk9Yf5zvU X-Received: by 10.28.178.69 with SMTP id b66mr4921725wmf.15.1446231564333; Fri, 30 Oct 2015 11:59:24 -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 p75sm4220566wmd.22.2015.10.30.11.59.23 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 30 Oct 2015 11:59:23 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Fri, 30 Oct 2015 19:58:55 +0100 Message-Id: <1446231537-8380-2-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1446231537-8380-1-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> Subject: [dpdk-dev] [PATCH v2 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: Fri, 30 Oct 2015 18:59:24 -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