From patchwork Fri Apr 21 06:02:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vamsi Krishna Attunuru X-Patchwork-Id: 126338 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 208E6429A6; Fri, 21 Apr 2023 08:02:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EAD86410DD; Fri, 21 Apr 2023 08:02:56 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id EC0D640E6E for ; Fri, 21 Apr 2023 08:02:55 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33L32sJ0007981 for ; Thu, 20 Apr 2023 23:02:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=fz0LTeCvNPeGnIk1npYtxXF8oXdCHeIU/re/ILBEOqs=; b=M+nsysCqEb1ld/BjyearBrmay0jppoc/FGtrMTp0IM7BtGbGzCW+abIX+FxGIE274xpH LzAAdadtGeuLyTvKKIWy5feAW+yRwRs6bUjbDrtJLue2xGzVffV9oq8dOMLcwFfsiu1d LcrBAOEen7coJKd8h+7IfC8zaj/3LZHnNwKu9cbl2zOWqMQrWey2YW+EiDgMbOaE1azx zGYWWx0ZmO4uffcweRclZBW+0Bjh7XP1J+ph9BTOD4FBIQwzk5+R6zqsTmXmFdH39cCK ZRHDrw5SzwKUzwv6rGdXPLfjL6hoAA17MaqUrQ+tn6CoI6ZHRONxqPJq2EhPFB8ftCU8 kQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3q3djpjem2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 20 Apr 2023 23:02:55 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 20 Apr 2023 23:02:53 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 20 Apr 2023 23:02:53 -0700 Received: from localhost.localdomain (unknown [10.28.36.156]) by maili.marvell.com (Postfix) with ESMTP id D402D3F707C; Thu, 20 Apr 2023 23:02:51 -0700 (PDT) From: Vamsi Attunuru To: , CC: , Subject: [PATCH 0/4] app: introduce testgraph application Date: Thu, 20 Apr 2023 23:02:41 -0700 Message-ID: <20230421060245.3136217-1-vattunuru@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: bl6s8QughDOi0NyGIDmcJwzfFHpmzcv0 X-Proofpoint-ORIG-GUID: bl6s8QughDOi0NyGIDmcJwzfFHpmzcv0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-20_17,2023-04-20_01,2023-02-09_01 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 patch series introduces testgraph application that verifies graph architecture, it provides an infra to verify the graph & node libraries and scale the test coverage by adding newer configurations to exercise various graph topologies & graph-walk models required by the DPDK applications. Also this series adds two new nodes (punt_kernel & kernel_recv) to the node library. Vamsi Attunuru (4): node: add pkt punt to kernel node node: add a node to receive pkts from kernel node: remove hardcoded node next details app: add testgraph application app/meson.build | 1 + app/test-graph/cmdline.c | 212 +++++ app/test-graph/cmdline_graph.c | 297 ++++++ app/test-graph/cmdline_graph.h | 19 + app/test-graph/meson.build | 17 + app/test-graph/parameters.c | 157 ++++ app/test-graph/testgraph.c | 1309 +++++++++++++++++++++++++++ app/test-graph/testgraph.h | 92 ++ doc/guides/prog_guide/graph_lib.rst | 17 + doc/guides/tools/index.rst | 1 + doc/guides/tools/testgraph.rst | 131 +++ lib/node/ethdev_rx.c | 2 - lib/node/kernel_recv.c | 277 ++++++ lib/node/kernel_recv_priv.h | 74 ++ lib/node/meson.build | 2 + lib/node/punt_kernel.c | 125 +++ lib/node/punt_kernel_priv.h | 36 + 17 files changed, 2767 insertions(+), 2 deletions(-) create mode 100644 app/test-graph/cmdline.c create mode 100644 app/test-graph/cmdline_graph.c create mode 100644 app/test-graph/cmdline_graph.h create mode 100644 app/test-graph/meson.build create mode 100644 app/test-graph/parameters.c create mode 100644 app/test-graph/testgraph.c create mode 100644 app/test-graph/testgraph.h create mode 100644 doc/guides/tools/testgraph.rst create mode 100644 lib/node/kernel_recv.c create mode 100644 lib/node/kernel_recv_priv.h create mode 100644 lib/node/punt_kernel.c create mode 100644 lib/node/punt_kernel_priv.h