From patchwork Tue Dec 5 14:51:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 459 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0822F4367A; Tue, 5 Dec 2023 15:51:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA08640297; Tue, 5 Dec 2023 15:51:19 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id CCA0F40271 for ; Tue, 5 Dec 2023 15:51:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701787878; x=1733323878; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4zn+xB8G6XaQgm0njA+Hd+gUSg0W67zeQHQoggTpVEs=; b=Vh0sedhK3aJTvnxXVhSSRqWgceQmvcVtnsxpbg2LdPWuKO3B1KPshf9Y 1MipjajwmXXe6k5sUX9j5JHBVto9PYAaKawhYvTe/v2NJ5DTpN7CBnvNm zMKx8RLm3324/o3jPaofC/a0RtwWYAhGHXfeNd5DUIR8UbENxCHnTsjNM ErgTsukBjrFQNbgI7ck0L83138ZuklQcnyC+UygZ+jaPusA9e2zUABtLT XdBTW1MPsMKk04QB3zQ/Hmgj2oOqAKJx1uKnOfEZn9V+W/TrEtrOsiRxW UwP5griN4w8o0Z5X0vAWXrrKcsjPI/8cZrlkwvzR7hCbwc7IKnS4IM8PU A==; X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="374089926" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="374089926" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 06:51:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="1018234141" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="1018234141" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.152]) by fmsmga006.fm.intel.com with ESMTP; 05 Dec 2023 06:51:15 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: skori@marvell.com, david.marchand@redhat.com, Bruce Richardson Subject: [PATCH 0/3] enhancements for dpdk-cmdline-gen script Date: Tue, 5 Dec 2023 14:51:06 +0000 Message-Id: <20231205145109.1000464-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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 This set contains some small enhancements for the cmdline generation script introduced in the last release. Specifically: * Add support for commands with an optional variable parameter. This is needed to support command pairs like testpmd's "start tx_first" and "start tx_first 128" (to send 128 packets rather than 32). * Improve IP address handling support. We make the "IP" type correspond to the cmdline lib IP type which supports IPv4 and v6. Then we add explicit support for IPv4 addresses and IPv6 addresses only via new type names. Bruce Richardson (3): buildtools/dpdk-cmdline-gen: support optional parameters buildtools/dpdk-cmdline-gen: fix IP address initializer buildtools/dpdk-cmdline-gen: add explicit IPv4 and v6 types buildtools/dpdk-cmdline-gen.py | 21 ++++++++++++++++++++- doc/guides/prog_guide/cmdline.rst | 17 +++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) --- 2.40.1