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 BD1B5A04A5; Thu, 18 Jun 2020 04:00:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7CD3D25B3; Thu, 18 Jun 2020 04:00:55 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 709A01252 for ; Thu, 18 Jun 2020 04:00:53 +0200 (CEST) IronPort-SDR: BH4mJYc3rbWYTFDVkYVEOlbtPzMDPvDy9rTPeV7GNzHacxSpMHOuZsnRoAmfZa9xFMtohXPYbM tkB6ljsul1Tw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2020 19:00:52 -0700 IronPort-SDR: wPJO1srXspqysIDFJa9b8F+FBYED+doZw08GDPdwqCFKRwOdFV4+bjGKZmqAvLfAAUV6N+cQT7 rKEd2Nv5o7+g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,524,1583222400"; d="scan'208";a="277468598" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by orsmga006.jf.intel.com with ESMTP; 17 Jun 2020 19:00:50 -0700 From: lihong To: dts@dpdk.org, yingyax.han@intel.com Cc: lihong Date: Thu, 18 Jun 2020 02:29:22 +0800 Message-Id: <1592418562-325-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/vmdq: recorrect the dst mac of pcap 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" Signed-off-by: lihong --- tests/TestSuite_vmdq.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vmdq.py b/tests/TestSuite_vmdq.py index e5dcd82..162636f 100644 --- a/tests/TestSuite_vmdq.py +++ b/tests/TestSuite_vmdq.py @@ -166,11 +166,13 @@ class TestVmdq(TestCase): for _port in self.dut_ports: if _port % len(self.dut_ports) == 0 or len(self.dut_ports) % _port == 2: txIntf = self.tester.get_local_port(self.dut_ports[_port + 1]) + dst_port = _port + 1 else: txIntf = self.tester.get_local_port(self.dut_ports[_port - 1]) + dst_port = _port - 1 rxIntf = self.tester.get_local_port(self.dut_ports[_port]) - self.tester.scapy_append('flows = [Ether(dst="%s")/Dot1Q(vlan=0)/("X"*%d)]' - % (self.destmac_port[txIntf], payload)) + self.tester.scapy_append('flows = [Ether(dst="%s")/Dot1Q(vlan=0)/IP(src="1.2.3.4", dst="1.1.1.1")/("X"*%d)]' + % (self.destmac_port[dst_port], payload)) pcap = os.sep.join([self.output_path, "%s-%d.pcap" % (self.suite_name, _port)]) self.tester.scapy_append('wrpcap("%s", flows)' % pcap) self.tester.scapy_execute() -- 2.7.4