From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3ACDFA0487 for ; Tue, 2 Jul 2019 11:37:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 00A603195; Tue, 2 Jul 2019 11:37:06 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BEC7C2BC8 for ; Tue, 2 Jul 2019 11:37:04 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 02:37:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,442,1557212400"; d="scan'208";a="190590109" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 02 Jul 2019 02:37:03 -0700 From: "xiao,qimai" To: dts@dpdk.org Cc: "xiao,qimai" Date: Tue, 2 Jul 2019 17:41:45 +0800 Message-Id: <1562060505-128268-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] update send_pakcet method to disperse pkts to all queues X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" update send_pakcet method to disperse pkts to all queues Signed-off-by: xiao,qimai --- tests/TestSuite_runtime_vf_queue_number_kernel.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_runtime_vf_queue_number_kernel.py b/tests/TestSuite_runtime_vf_queue_number_kernel.py index 0dfac52..4232253 100644 --- a/tests/TestSuite_runtime_vf_queue_number_kernel.py +++ b/tests/TestSuite_runtime_vf_queue_number_kernel.py @@ -133,9 +133,11 @@ class TestRuntimeVfQueueNumberKernel(TestCase): def send_packet2different_queue(self, dts, src, iface, count): self.tester.scapy_foreground() - for i in range(count): - pkt = 'sendp([Ether(dst="%s", src="%s")/IP(src="10.0.0.1",dst="192.168.13.%d")/("test"*10)],iface="%s")' % ( - dts, src, (i % 254) + 1, iface) + for i in range(1,count+1): + j = (i//255)%255 + k = i%255 + pkt = 'sendp([Ether(dst="%s", src="%s")/IP(src="192.168.%d.%d",dst="192.168.13.%d")/("test"*10)],iface="%s")' % ( + dts, src, j,k,k, iface) self.tester.scapy_append(pkt) self.tester.scapy_execute() -- 2.17.1