From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3A20F43F61; Wed, 1 May 2024 20:26:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EEEF24027F; Wed, 1 May 2024 20:26:58 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 3FBE04021E for ; Wed, 1 May 2024 20:26:58 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 1F71220995; Wed, 1 May 2024 20:26:58 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH v2] cmdline: increase input buffer size Date: Wed, 1 May 2024 20:26:54 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F412@smartserver.smartshare.dk> In-Reply-To: <20240501171806.307533-1-getelson@nvidia.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v2] cmdline: increase input buffer size Thread-Index: Adqb663Ms3uYCAV3REmNQ9yxpYt5JwACJO4A References: <20240501052659.231457-1-getelson@nvidia.com> <20240501171806.307533-1-getelson@nvidia.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Gregory Etelson" Cc: , , , , "Bruce Richardson" , "Stephen Hemminger" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org +CC: Bruce, Stephen > From: Gregory Etelson [mailto:getelson@nvidia.com] > Sent: Wednesday, 1 May 2024 19.18 >=20 > DPDK defines cmdline input buffer size to 512 characters. > That buffer size can be too small for long application input. > For example, the following flow template API testpmd command is 444 > bytes long: > ``` > flow queue 0 create 0 template_table 1000 \ > pattern_template 0 actions_template 0 postpone no \ > pattern eth / ipv4 / udp / end \ > actions modify_field op set dst_type tag dst_level 0 dst_offset 0 \ > src_type value src_value 0x31 width 32 / \ > modify_field op set dst_type ipv4_src src_type value \ > src_value 10101010 width 32 / modify_field op add dst_type \ > ipv4_ttl dst_level 0 dst_offset 0 src_type value \ > src_value ff width 8 / count / jump group 100 / end > ``` >=20 > The patch increases cmdline input buffer size to the LINE_MAX value. + ... , which typically is 2048. >=20 > Signed-off-by: Gregory Etelson > --- With or without suggested patch description change, Reviewed-by: Morten Br=F8rup