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 43363A2EFC for ; Tue, 17 Sep 2019 10:32:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 373E91BFB0; Tue, 17 Sep 2019 10:32:01 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8E2AD1BEFA for ; Tue, 17 Sep 2019 10:31:59 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Sep 2019 01:31:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,515,1559545200"; d="scan'208";a="201787433" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 17 Sep 2019 01:31:58 -0700 From: zhuwenhui To: dts@dpdk.org Cc: zhuwenhui Date: Tue, 17 Sep 2019 16:36:27 +0800 Message-Id: <1568709388-12092-2-git-send-email-wenhuix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1568709388-12092-1-git-send-email-wenhuix.zhu@intel.com> References: <1568709388-12092-1-git-send-email-wenhuix.zhu@intel.com> Subject: [dts] [PATCH V1] tests/virtio_user_for_container_networking:make mac take effect 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" Specify the mac address to make the receiving packet normal. Signed-off-by: zhuwenhui --- tests/TestSuite_virtio_user_for_container_networking.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_virtio_user_for_container_networking.py b/tests/TestSuite_virtio_user_for_container_networking.py index 241d5b0..034587e 100644 --- a/tests/TestSuite_virtio_user_for_container_networking.py +++ b/tests/TestSuite_virtio_user_for_container_networking.py @@ -117,8 +117,9 @@ class TestVirtioUserForContainer(TestCase): self.tester.scapy_execute() self.tester.pktgen.clear_streams() + vm_config = {'mac':{'dst':{'range': 1, 'step': 1, 'action': 'inc'},},} streams = self.pktgen_helper.prepare_stream_from_tginput(tgen_input, 100, - None, self.tester.pktgen) + vm_config, self.tester.pktgen) _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams) Mpps = pps / 1000000.0 self.verify(Mpps > 0, '%s can not receive packets of frame size %d' % (self.running_case, frame_size)) -- 2.17.2