[0/3] enhancements for dpdk-cmdline-gen script

Message ID 20231205145109.1000464-1-bruce.richardson@intel.com (mailing list archive)
Headers
Series enhancements for dpdk-cmdline-gen script |

Message

Bruce Richardson Dec. 5, 2023, 2:51 p.m. UTC
  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
  

Comments

David Marchand Dec. 12, 2023, 10:25 a.m. UTC | #1
On Tue, Dec 5, 2023 at 3:51 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> 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(-)

Series applied, thanks Bruce.