From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 80B7C42E9B; Mon, 17 Jul 2023 13:07:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06ECB40E25; Mon, 17 Jul 2023 13:07:14 +0200 (CEST) Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by mails.dpdk.org (Postfix) with ESMTP id 612A040698 for ; Mon, 17 Jul 2023 13:07:12 +0200 (CEST) Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-98e011f45ffso545682866b.3 for ; Mon, 17 Jul 2023 04:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1689592032; x=1692184032; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iI6sI+iQdwdjwbM8X7Ie+CYj1St0l3V1Bw89nm/uW18=; b=kO2WQT0xylgDJDPrV7v53R0R3UYu1BbNCPteyU0tI9/cyAOvxvX+3cGTeeBWEvrt2p Az69yQQTcenwDbJWhxUNR3reFGQZH8A4kJlmc2xRgnqlXH1gh2FmXGPgSDQSwzgn1FYJ 5AlthqT0CXayxR8S1+phnSJKE21uuQZtm1muPGDKjK09hcJvlVy+ImqxI39bAY0JfQQI mB4HLATiPfP8sJMeRvUr9V5w72Y4Es78oMZLGw2ZubCAwyob810EOrlx93AQqetp5TiO SC42s7ChBSkEQ3AkhmJXZC1gS4F3Dx8LyAUnQvcpwz/cIyUkGWVvlCfmgbo8n5DqWpUA DMxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689592032; x=1692184032; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iI6sI+iQdwdjwbM8X7Ie+CYj1St0l3V1Bw89nm/uW18=; b=HtduwRzBRDdIefC5bl1Rh+c86xsaDuKQK+rLIYptkvjG9B5pZdSgMfhN9H3XC/b6Cr GlG2ANvUy7d160qW7Zj2/vUMpHwvz4IRBAGI+jo6MRmWnlwDxJxTGyGIWn6FdYKhQ5YQ 3Cv2KYhES5s2LjQcdbs8xlkAPiAqP4q6lD0ft9taO7Bpt3i8Fwx2igQ3vucNQOPqcNVN zMO6WX0l/PuUk9WfwTokL2+RMtRZTjNR5jAI47cixewE4Gom3zIsR/gWotGclhK11Z54 Yp/7o/OFij2IHWI85qR9w7zhsw8ra0LA3CpBal6spRGHnKT604Rm8NuDPk7Ge6tWwEnD JySw== X-Gm-Message-State: ABy/qLYzO2MOh3KZaGUcxIU6BSEKM0Jzk1XvFdsy2ZS4yJzbBQKy7rDo lOHKn7Gyn3bjSVtZUkPe/BP21g== X-Google-Smtp-Source: APBJJlErOBZwazl5t9DansxU5VwsOn3qkS1q6bGym4sznyPXAR5ItpQKdeIsBXHva0V9zCLqIKWENQ== X-Received: by 2002:a17:906:c205:b0:993:f9d4:eab3 with SMTP id d5-20020a170906c20500b00993f9d4eab3mr9389729ejz.18.1689592031784; Mon, 17 Jul 2023 04:07:11 -0700 (PDT) Received: from jlinkes-PT-Latitude-5530.. (ip-46.34.239.87.o2inet.sk. [46.34.239.87]) by smtp.gmail.com with ESMTPSA id s21-20020a170906355500b0098de7d28c34sm8995051eja.193.2023.07.17.04.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 04:07:11 -0700 (PDT) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, lijuan.tu@intel.com, jspewock@iol.unh.edu, probb@iol.unh.edu Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v2 0/6] dts: tg abstractions and scapy tg Date: Mon, 17 Jul 2023 13:07:03 +0200 Message-Id: <20230717110709.39220-1-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230420093109.594704-1-juraj.linkes@pantheon.tech> References: <20230420093109.594704-1-juraj.linkes@pantheon.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Add abstractions for traffic generator split into those that can and can't capture traffic. The Scapy implementation uses an XML-RPC server for remote control. This requires an interactive session to add Scapy funcions to the server. The interactive session code is based on another patch [0]. The basic test case is there to showcase the Scapy implementation - it sends just one UDP packet and verifies it on the other end. [0]: http://patches.dpdk.org/project/dpdk/patch/20230713165347.21997-3-jspewock@iol.unh.edu/ Juraj Linkeš (6): dts: add scapy dependency dts: add traffic generator config dts: traffic generator abstractions dts: add python remote interactive shell dts: scapy traffic generator implementation dts: add basic UDP test case doc/guides/tools/dts.rst | 31 ++ dts/conf.yaml | 27 +- dts/framework/config/__init__.py | 115 ++++--- dts/framework/config/conf_yaml_schema.json | 32 +- dts/framework/dts.py | 65 ++-- dts/framework/remote_session/__init__.py | 3 +- dts/framework/remote_session/linux_session.py | 96 ++++++ dts/framework/remote_session/os_session.py | 75 +++-- .../remote_session/remote/__init__.py | 1 + .../remote/interactive_shell.py | 18 +- .../remote_session/remote/python_shell.py | 24 ++ .../remote_session/remote/testpmd_shell.py | 33 +- dts/framework/test_suite.py | 221 ++++++++++++- dts/framework/testbed_model/__init__.py | 1 + .../capturing_traffic_generator.py | 135 ++++++++ dts/framework/testbed_model/hw/port.py | 60 ++++ dts/framework/testbed_model/node.py | 64 +++- dts/framework/testbed_model/scapy.py | 290 ++++++++++++++++++ dts/framework/testbed_model/sut_node.py | 52 ++-- dts/framework/testbed_model/tg_node.py | 99 ++++++ .../testbed_model/traffic_generator.py | 72 +++++ dts/framework/utils.py | 13 + dts/poetry.lock | 21 +- dts/pyproject.toml | 1 + dts/tests/TestSuite_os_udp.py | 45 +++ dts/tests/TestSuite_smoke_tests.py | 6 +- 26 files changed, 1434 insertions(+), 166 deletions(-) create mode 100644 dts/framework/remote_session/remote/python_shell.py create mode 100644 dts/framework/testbed_model/capturing_traffic_generator.py create mode 100644 dts/framework/testbed_model/hw/port.py create mode 100644 dts/framework/testbed_model/scapy.py create mode 100644 dts/framework/testbed_model/tg_node.py create mode 100644 dts/framework/testbed_model/traffic_generator.py create mode 100644 dts/tests/TestSuite_os_udp.py -- 2.34.1