From patchwork Mon Mar 11 15:43:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jeremy Spewock X-Patchwork-Id: 759 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 67BC143C89; Mon, 11 Mar 2024 16:44:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3530A4027C; Mon, 11 Mar 2024 16:44:51 +0100 (CET) Received: from mail-io1-f98.google.com (mail-io1-f98.google.com [209.85.166.98]) by mails.dpdk.org (Postfix) with ESMTP id 840084026B for ; Mon, 11 Mar 2024 16:44:50 +0100 (CET) Received: by mail-io1-f98.google.com with SMTP id ca18e2360f4ac-7c7f3f66d17so126084139f.0 for ; Mon, 11 Mar 2024 08:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1710171890; x=1710776690; darn=dpdk.org; 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=RTv1lufJg9FvHp8gh2QfvLIEH+9rgSjIQkUhw3qkE7A=; b=Fm6UHrJAnOjc0jaC+fso/O0aJ4FAbIXl6okNsfVQC/hND08SOwaZ8o+JzxnXdAr8Mv sI/BaM8MhUbnYWwLuesc/ujYnXg9I9Mj4b0pTtObM4W5Qd7TiGFFviS0dF5TFMAzsGPt tcn4Kkj97OHTp4yhfGnc8vBLtpp5H0W1Tweik= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710171890; x=1710776690; 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=RTv1lufJg9FvHp8gh2QfvLIEH+9rgSjIQkUhw3qkE7A=; b=vMj771HsDe/cOAoq4DHeASy7KhDhU9V2tssnPM0hrWyXZpO0yAB6ekE5/RMgORAuwQ F86qCmjPe4jj4YoTTvEAViNDAS3YrIQD1Hq9DUzenCt7OxTP4MV03X1P15SyK7p4a9A5 ZLZA2z3MZqWH2kcBx/ET+OtWmUvgSqZd7GoZik5xGwn2O7n/7BDypdxEG3vWDp2qUwus TJUIngqpJUcl9IkKW57+s2XH/VCWlsfLpmSVYOlsHd7Xp4en+sVQXdv95bmlX4e8NWfE K5YDIcrpNse0+kueCysxpMYYnAzOin7JFcSomfSdPZLldzU0YQ21lbUZ/NspCsdANb5y SK7Q== X-Gm-Message-State: AOJu0YzyhXsVFfPKSlWxYfIKmpSa6LQMDOc9v9oC5OevHhkIf+/rVeoD DAJB7js/KuLeaINO+kzGVCrX/xeG0WlBl+D8yKrOnaOs60hVxJPQrV3VjE8cayDrgZld8/UT7Av /c9+YK4RTu5mAxn19Y44SQ2ohI3pibKzCOxoTQSKV2Of0PS8J X-Google-Smtp-Source: AGHT+IFgGQfyMqtOj8eNQ7qY0Q4wW0jh+609k2um2KQ0vZLPyH9aZRPmjpitZu6KX5zIPUqpWvxyrhJSum6P X-Received: by 2002:a6b:e917:0:b0:7c8:b803:4a6e with SMTP id u23-20020a6be917000000b007c8b8034a6emr3858353iof.10.1710171889863; Mon, 11 Mar 2024 08:44:49 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id ik18-20020a0566026c1200b007c864e6b4d1sm203815iob.0.2024.03.11.08.44.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2024 08:44:49 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1271:90f9:1b64:f6e6:867f]) by postal.iol.unh.edu (Postfix) with ESMTP id 414B46052471; Mon, 11 Mar 2024 11:44:49 -0400 (EDT) From: jspewock@iol.unh.edu To: Honnappa.Nagarahalli@arm.com, juraj.linkes@pantheon.tech, thomas@monjalon.net, wathsala.vithanage@arm.com, probb@iol.unh.edu, paul.szczepanek@arm.com, yoan.picchi@foss.arm.com, ferruh.yigit@amd.com, andrew.rybchenko@oktetlabs.ru Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v9 0/7] dts: Port scatter suite over Date: Mon, 11 Mar 2024 11:43:58 -0400 Message-ID: <20240311154405.13269-1-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240110144249.20719-1-jspewock@iol.unh.edu> References: <20240110144249.20719-1-jspewock@iol.unh.edu> MIME-Version: 1.0 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 From: Jeremy Spewock v9: * rebase series on main * add "Test" to the name of the test suite class so that it gets properly recognized as a suite according to changes from patch on main. Note that changing the name of a test suite class funtionally doesn't change anything about the suite. The framework imports the first test suite class it can find within the module, but the new changes on main enforce that to be a valid test suite class the name must start with "Test". So, changing this just allows the framework to "see" the test suite, it does not modify the test suite itself. Jeremy Spewock (7): dts: add startup verification and forwarding modes to testpmd shell dts: limit EAL parameters to DPDK apps and add parameters to all apps dts: add optional packet filtering to scapy sniffer dts: add pci addresses to EAL parameters dts: allow configuring MTU of ports dts: add scatter to the yaml schema dts: add pmd_buffer_scatter test suite dts/framework/config/conf_yaml_schema.json | 3 +- dts/framework/exception.py | 7 + dts/framework/remote_session/testpmd_shell.py | 149 +++++++++++++++++- dts/framework/test_suite.py | 15 +- dts/framework/testbed_model/linux_session.py | 8 + dts/framework/testbed_model/os_session.py | 9 ++ dts/framework/testbed_model/sut_node.py | 28 +++- dts/framework/testbed_model/tg_node.py | 14 +- .../traffic_generator/__init__.py | 7 +- .../capturing_traffic_generator.py | 22 ++- .../testbed_model/traffic_generator/scapy.py | 27 ++++ dts/tests/TestSuite_pmd_buffer_scatter.py | 132 ++++++++++++++++ 12 files changed, 407 insertions(+), 14 deletions(-) create mode 100644 dts/tests/TestSuite_pmd_buffer_scatter.py Reviewed-by: Juraj Linkeš Tested-by: Patrick Robb