[PATCH] app/graph: generate cmdline boilerplate
Bruce Richardson
bruce.richardson at intel.com
Thu Dec 7 11:29:26 CET 2023
On Thu, Dec 07, 2023 at 12:42:05PM +0530, skori at marvell.com wrote:
> From: Sunil Kumar Kori <skori at marvell.com>
>
> Use the dpdk-cmdline-gen script to autogenerate all the boilerplate
> structs and defines for the commandline part of the application.
>
> Depends-on: series-30459 ("enhancements for dpdk-cmdline-gen script")
>
> Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
> ---
> app/graph/cli.c | 27 ---
> app/graph/commands.list | 32 ++++
> app/graph/ethdev.c | 288 +++++-------------------------
> app/graph/ethdev.h | 9 -
> app/graph/ethdev_priv.h | 63 -------
> app/graph/ethdev_rx.c | 67 +------
> app/graph/ethdev_rx.h | 2 -
> app/graph/ethdev_rx_priv.h | 16 --
> app/graph/examples/l3fwd.cli | 12 +-
> app/graph/examples/l3fwd_pcap.cli | 12 +-
> app/graph/graph.c | 131 ++------------
> app/graph/graph.h | 5 -
> app/graph/graph_priv.h | 35 ----
> app/graph/ip4_route.c | 86 ++-------
> app/graph/ip6_route.c | 88 ++-------
> app/graph/mempool.c | 68 +------
> app/graph/mempool.h | 3 -
> app/graph/mempool_priv.h | 18 --
> app/graph/meson.build | 8 +
> app/graph/module_api.h | 1 +
> app/graph/neigh.c | 103 ++---------
> app/graph/neigh.h | 4 -
> app/graph/neigh_priv.h | 21 ---
> app/graph/route.h | 5 -
> app/graph/route_priv.h | 34 ----
> 25 files changed, 164 insertions(+), 974 deletions(-)
> create mode 100644 app/graph/commands.list
>
I really like the diff-stats of this patch! More than 800 lines fewer in our
codebase.
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list