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 C20FA42EB9; Wed, 19 Jul 2023 16:13:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98EA840DFD; Wed, 19 Jul 2023 16:13:06 +0200 (CEST) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by mails.dpdk.org (Postfix) with ESMTP id 4CF0F40685 for ; Wed, 19 Jul 2023 16:13:05 +0200 (CEST) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5216569f9e3so7985712a12.0 for ; Wed, 19 Jul 2023 07:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1689775985; x=1690380785; 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=bB3LpWPLR0Fgf4jK8Z90zhfnOaHBYQ3sFA2BWVGJa/w=; b=UFDUIopzRPHWnKedJc6XVq/UAFagci9fSHpLZh9iD4mkWbH5KZQ4UUA1RhZZcpzFeN E0aP4kYYHpsr3z+59U+oMoQUSk3YFJlUXHkMTzJCIolTF/UcsuuLersswwNQXeA9b2ai z5vNhYveE6Z/0nZvPjcMS+4Hhptx9xXl9iCFusqWoMCqHObmc54fTqte38Li4upJMMEK jZLbH3tPkolZCMmS6Z3NA0O/4H5/jjvwbekpbNmWQp9D+UaJi8xVCHYH+/45HkJPhrcd gRR3h+yHFrCS6pk0pM0SahTasHp634CvGpdBvBHqfMYuYzK0EZkGcXS47xtqDhIc3Mns 1WNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689775985; x=1690380785; 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=bB3LpWPLR0Fgf4jK8Z90zhfnOaHBYQ3sFA2BWVGJa/w=; b=b5HrQufNiTfSo54cyxV09ld6b5clJBzOuqXmadpjq7YlZ6Fegx+2DqW1gPb9oa5NS3 Ys94n3g13tNucb9HDQZlen9SPK+FTvVeIVjZM23ZBZXeZUJsQkwSdpST/DM6sGmawgix nbs/luXKJujsyQ1kRUysefqO0u07M2+T0ayFbi14pbSnj4e3AZba+GWoLCQBuDWZOJa6 +qvPtvBUAgz5Wg8xQsGJbz6swIoTw24+KaZuInGfcMCnuZkXXCVTZc7e7zyg0OpHfelU C+p0GRoBZZ+kH51yU0gsWi4hJ73VuF0wZeTjYExHPBdzjpFR+k2J4JY+HFBjeVTv+/RL kq8A== X-Gm-Message-State: ABy/qLbW2VmJz/452IjadRpBecmunuZxim4mamqHeQ+Q3FczMhQ3H5vH 7I8GdKSo80c0qOfKn5tPUJYJaw== X-Google-Smtp-Source: APBJJlHk3Rqi/lKUw9ygzfbV8jvBrOHRt9s5fFZo/AiBxv4RgjnDtsz1/P+B/g8uW0j/BF2n1V/OrA== X-Received: by 2002:aa7:c301:0:b0:51e:22da:186c with SMTP id l1-20020aa7c301000000b0051e22da186cmr2189167edq.35.1689775984980; Wed, 19 Jul 2023 07:13:04 -0700 (PDT) Received: from jlinkes-PT-Latitude-5530.. (ip-46.34.247.144.o2inet.sk. [46.34.247.144]) by smtp.gmail.com with ESMTPSA id q8-20020a056402040800b0051e2809395bsm2721979edv.63.2023.07.19.07.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 07:13:04 -0700 (PDT) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, lijuan.tu@intel.com, bruce.richardson@intel.com, jspewock@iol.unh.edu, probb@iol.unh.edu Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v3 0/6] dts: tg abstractions and scapy tg Date: Wed, 19 Jul 2023 16:12:57 +0200 Message-Id: <20230719141303.33284-1-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230717110709.39220-1-juraj.linkes@pantheon.tech> References: <20230717110709.39220-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 functions 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/20230718214802.3214-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 | 84 ++++- dts/framework/config/conf_yaml_schema.json | 32 +- dts/framework/dts.py | 65 ++-- dts/framework/remote_session/__init__.py | 1 + dts/framework/remote_session/linux_session.py | 96 ++++++ dts/framework/remote_session/os_session.py | 35 ++- .../remote_session/remote/__init__.py | 1 + .../remote_session/remote/python_shell.py | 12 + dts/framework/test_suite.py | 221 ++++++++++++- dts/framework/testbed_model/__init__.py | 1 + .../capturing_traffic_generator.py | 136 ++++++++ dts/framework/testbed_model/hw/port.py | 60 ++++ dts/framework/testbed_model/node.py | 34 +- dts/framework/testbed_model/scapy.py | 290 ++++++++++++++++++ dts/framework/testbed_model/sut_node.py | 9 +- 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 +++ 23 files changed, 1329 insertions(+), 57 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