Here is a series to reduce code duplication in testpmd. This work started from looking at Robin series on reporting lcore busy cycles in telemetry, which is then added in testpmd [1]. While looking at the forward engines code, I saw way too much duplicated code.
Warning: this is only compile tested. 1: https://patchwork.dpdk.org/project/dpdk/patch/20230119150656.418404-5-rja...@redhat.com/ -- David Marchand David Marchand (6): app/testpmd: factorize core cycles record app/testpmd: don't send unprepared packets app/testpmd: bulk free mbufs app/testpmd: factorize fwd engine init app/testpmd: factorize fwd engine Rx app/testpmd: factorize fwd engine Tx app/test-pmd/5tswap.c | 54 ++-------------- app/test-pmd/csumonly.c | 61 +++--------------- app/test-pmd/flowgen.c | 55 ++-------------- app/test-pmd/icmpecho.c | 60 +++--------------- app/test-pmd/ieee1588fwd.c | 35 ++++------- app/test-pmd/iofwd.c | 54 ++-------------- app/test-pmd/macfwd.c | 53 ++-------------- app/test-pmd/macswap.c | 58 +++-------------- app/test-pmd/noisy_vnf.c | 115 +++++++++------------------------- app/test-pmd/rxonly.c | 18 ++---- app/test-pmd/shared_rxq_fwd.c | 14 ++--- app/test-pmd/testpmd.c | 26 ++++++-- app/test-pmd/testpmd.h | 46 +++++++++++++- app/test-pmd/txonly.c | 45 ++++--------- 14 files changed, 173 insertions(+), 521 deletions(-) -- 2.39.1