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 BD7604286D; Thu, 30 Mar 2023 09:50:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 94EA840E25; Thu, 30 Mar 2023 09:50:47 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id A2CAF40685 for ; Thu, 30 Mar 2023 09:50:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680162645; x=1711698645; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uQKmozqtlHp6xd+0lNIHCF6oAAU57rk6YVMTi24euD0=; b=KHsYp+ksT3GekNLLW7eDq7gRHuwUlsyEY87fAhV/9HQW7pt2/QeNUk0q 8i/fGjWH/jGAv0v0omIrNhGPjqQ/XfdfcrNqyiPENy3dHrPhdXnwQNY9K MRLwg/6VXIhPDucyd2fJ560c+/30eSafeczfOWh22+bKP/y4qYjk6h7uz kHVfhAFR4SVhXl6qY7OvoMm7KctsT7gsUtZaur9IH8HH43T5fw6IrAa0W /hivl/NQXk+4M7Mp2HD/jc6fKqbp7LVTmj0+SLBhd+AHScRfrFoNZjudI koqdSC2Zl4GXGZwutAw9UuDZ4lPkLpRBstTIIxrxoM5bpwCiNZeQ8FK09 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="320747508" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="320747508" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 00:50:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="773892100" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="773892100" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 00:50:40 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1] tests/vhost_virtio_user_interrupt_with_power_monitor: modify the packet to make every queue can receive packets Date: Thu, 30 Mar 2023 15:47:25 +0800 Message-Id: <20230330074725.783889-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 1.Modify the packet to make every queue can receive packets when start testpmd with multi-queues. 2.Because the default parameter is `--rss-ip`, so delete it. Signed-off-by: Wei Ling --- ...Suite_vhost_virtio_user_interrupt_with_power_monitor.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py b/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py index e56d8b61..549b6a7b 100644 --- a/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py +++ b/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py @@ -139,7 +139,7 @@ class TestVirtioUserInterruptDsa(TestCase): ) if self.check_2M_env: eal_params += " --single-file-segments" - para = " -- -i --rxq=%d --txq=%d --rss-ip" % (queues, queues) + para = " -- -i --rxq=%d --txq=%d" % (queues, queues) command_line_client = self.app_testpmd_path + " " + eal_params + para self.virtio_user.send_expect( command_line_client, "waiting for client connection...", 120 @@ -197,14 +197,13 @@ class TestVirtioUserInterruptDsa(TestCase): fields_config = { "ip": { "src": {"action": "random"}, + "dst": {"action": "random"}, }, } pkt = Packet() - pkt.assign_layers(["ether", "ipv4", "raw"]) + pkt.assign_layers(["ether", "ipv4", "tcp", "raw"]) pkt.config_layers( [ - ("ether", {"dst": "52:54:00:00:00:01"}), - ("ipv4", {"src": "1.1.1.1"}), ("raw", {"payload": ["01"] * int("%d" % payload_size)}), ] ) -- 2.25.1