Message ID | 1446717516-17692-1-git-send-email-john.mcnamara@intel.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id F1BF98DA9; Thu, 5 Nov 2015 10:58:44 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B14708D9E for <dev@dpdk.org>; Thu, 5 Nov 2015 10:58:43 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 05 Nov 2015 01:58:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,247,1444719600"; d="scan'208";a="843147770" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 05 Nov 2015 01:58:39 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id tA59wb7X028547; Thu, 5 Nov 2015 09:58:37 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id tA59wbIa017726; Thu, 5 Nov 2015 09:58:37 GMT Received: (from jmcnam2@localhost) by sivswdev02.ir.intel.com with id tA59wa0h017722; Thu, 5 Nov 2015 09:58:36 GMT From: John McNamara <john.mcnamara@intel.com> To: olivier.matz@6wind.com Date: Thu, 5 Nov 2015 09:58:36 +0000 Message-Id: <1446717516-17692-1-git-send-email-john.mcnamara@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH] cmdline: increase commandline buffer size to 512 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
John McNamara
Nov. 5, 2015, 9:58 a.m. UTC
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 <john.mcnamara@intel.com>
---
lib/librte_cmdline/cmdline_rdline.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, Nov 05, 2015 at 09:58:36AM +0000, John McNamara wrote: > 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 <john.mcnamara@intel.com> > --- > lib/librte_cmdline/cmdline_rdline.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_cmdline/cmdline_rdline.h b/lib/librte_cmdline/cmdline_rdline.h > index b9aad9b..72e2dad 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 512 > #define RDLINE_PROMPT_SIZE 32 > #define RDLINE_VT100_BUF_SIZE 8 > #define RDLINE_HISTORY_BUF_SIZE BUFSIZ > -- > 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.
> -----Original Message----- > From: Nélio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > Sent: Thursday, November 5, 2015 4:51 PM > To: Mcnamara, John; Olivier Matz; Thomas Monjalon > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] cmdline: increase commandline buffer size > to 512 > > On Thu, Nov 05, 2015 at 09:58:36AM +0000, John McNamara wrote: > > Increase commandline buffer size to 512 to allow for longer > > commandlines required by testpmd when dealing with flow director and > > IPv6 addresses. > > > > ... > > > > /* configuration */ > > -#define RDLINE_BUF_SIZE 256 > > +#define RDLINE_BUF_SIZE 512 > > > > 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. 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. --
On Mon, Nov 09, 2015 at 11:45:04AM +0000, Mcnamara, John wrote: > > > > -----Original Message----- > > From: Nélio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > > Sent: Thursday, November 5, 2015 4:51 PM > > To: Mcnamara, John; Olivier Matz; Thomas Monjalon > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH] cmdline: increase commandline buffer size > > to 512 > > > > On Thu, Nov 05, 2015 at 09:58:36AM +0000, John McNamara wrote: > > > Increase commandline buffer size to 512 to allow for longer > > > commandlines required by testpmd when dealing with flow director and > > > IPv6 addresses. > > > > > > ... > > > > > > /* configuration */ > > > -#define RDLINE_BUF_SIZE 256 > > > +#define RDLINE_BUF_SIZE 512 > > > > > > > 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. > > 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. > -- Hi John, I will do it, I have another depreciation related to RETA. Thanks.
diff --git a/lib/librte_cmdline/cmdline_rdline.h b/lib/librte_cmdline/cmdline_rdline.h index b9aad9b..72e2dad 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 512 #define RDLINE_PROMPT_SIZE 32 #define RDLINE_VT100_BUF_SIZE 8 #define RDLINE_HISTORY_BUF_SIZE BUFSIZ