DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 0/6] Testpmd code cleanup
@ 2023-01-24 10:47 David Marchand
  2023-01-24 10:47 ` [PATCH 1/6] app/testpmd: factorize core cycles record David Marchand
                   ` (8 more replies)
  0 siblings, 9 replies; 48+ messages in thread
From: David Marchand @ 2023-01-24 10:47 UTC (permalink / raw)
  To: dev; +Cc: Ferruh Yigit, Aman Singh, Yuying Zhang, Robin Jarry

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-rjarry@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


^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2023-02-28 18:54 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 10:47 [PATCH 0/6] Testpmd code cleanup David Marchand
2023-01-24 10:47 ` [PATCH 1/6] app/testpmd: factorize core cycles record David Marchand
2023-02-14 18:14   ` Ferruh Yigit
2023-01-24 10:47 ` [PATCH 2/6] app/testpmd: don't send unprepared packets David Marchand
2023-02-14 18:14   ` Ferruh Yigit
2023-01-24 10:47 ` [PATCH 3/6] app/testpmd: bulk free mbufs David Marchand
2023-02-14 18:14   ` Ferruh Yigit
2023-01-24 10:47 ` [PATCH 4/6] app/testpmd: factorize fwd engine init David Marchand
2023-02-14 18:14   ` Ferruh Yigit
2023-01-24 10:47 ` [PATCH 5/6] app/testpmd: factorize fwd engine Rx David Marchand
2023-02-14 18:15   ` Ferruh Yigit
2023-01-24 10:47 ` [PATCH 6/6] app/testpmd: factorize fwd engine Tx David Marchand
2023-02-14 11:03   ` Singh, Aman Deep
2023-02-14 18:17     ` Ferruh Yigit
2023-02-16  8:01       ` Singh, Aman Deep
2023-02-16 10:07         ` Ferruh Yigit
2023-02-14 18:16   ` Ferruh Yigit
2023-02-20 16:33     ` David Marchand
2023-01-25 13:50 ` [PATCH 0/6] Testpmd code cleanup Robin Jarry
2023-02-14 18:22   ` Ferruh Yigit
2023-02-20 15:02     ` David Marchand
2023-02-20 16:40 ` [PATCH v2 0/9] " David Marchand
2023-02-20 16:40   ` [PATCH v2 1/9] app/testpmd: fix Tx preparation in checksum engine David Marchand
2023-02-20 16:40   ` [PATCH v2 2/9] app/testpmd: fix packet count in ieee15888 engine David Marchand
2023-02-20 16:40   ` [PATCH v2 3/9] app/testpmd: rework ieee1588 engine fwd configuration David Marchand
2023-02-24  9:11     ` Singh, Aman Deep
2023-02-20 16:40   ` [PATCH v2 4/9] app/testpmd: fix packet transmission in noisy VNF engine David Marchand
2023-02-20 16:40   ` [PATCH v2 5/9] app/testpmd: bulk free mbufs David Marchand
2023-02-20 16:41   ` [PATCH v2 6/9] app/testpmd: factorize core cycles record David Marchand
2023-02-20 16:41   ` [PATCH v2 7/9] app/testpmd: factorize fwd engine init David Marchand
2023-02-20 16:41   ` [PATCH v2 8/9] app/testpmd: factorize fwd engine Rx David Marchand
2023-02-20 16:41   ` [PATCH v2 9/9] app/testpmd: factorize fwd engine Tx David Marchand
2023-02-20 18:34 ` [PATCH v3 0/9] Testpmd code cleanup David Marchand
2023-02-20 18:34   ` [PATCH v3 1/9] app/testpmd: fix Tx preparation in checksum engine David Marchand
2023-02-20 18:34   ` [PATCH v3 2/9] app/testpmd: fix packet count in ieee15888 engine David Marchand
2023-02-24  8:24     ` Singh, Aman Deep
2023-02-20 18:34   ` [PATCH v3 3/9] app/testpmd: rework ieee1588 engine fwd configuration David Marchand
2023-02-28 18:50     ` Ferruh Yigit
2023-02-20 18:34   ` [PATCH v3 4/9] app/testpmd: fix packet transmission in noisy VNF engine David Marchand
2023-02-28 18:51     ` Ferruh Yigit
2023-02-20 18:34   ` [PATCH v3 5/9] app/testpmd: bulk free mbufs David Marchand
2023-02-20 18:45     ` Stephen Hemminger
2023-02-20 18:34   ` [PATCH v3 6/9] app/testpmd: factorize core cycles record David Marchand
2023-02-20 18:35   ` [PATCH v3 7/9] app/testpmd: factorize fwd engine init David Marchand
2023-02-20 18:35   ` [PATCH v3 8/9] app/testpmd: factorize fwd engine Rx David Marchand
2023-02-20 18:35   ` [PATCH v3 9/9] app/testpmd: factorize fwd engine Tx David Marchand
2023-02-28 18:35     ` Ferruh Yigit
2023-02-28 18:54   ` [PATCH v3 0/9] Testpmd code cleanup Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).