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 9DD04A04F5; Fri, 19 Jun 2020 08:23:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6C209FEB; Fri, 19 Jun 2020 08:23:36 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id BE8CEE07 for ; Fri, 19 Jun 2020 08:23:34 +0200 (CEST) IronPort-SDR: Zrt4o0Lelwx5MZ1UJ7Wnd6zddKy5zXsF3yZmEuoqhiUVdT4y3dVv4/Gr9yl4GLdEKSHPkbj+UB 3bk1mepEZmvg== X-IronPort-AV: E=McAfee;i="6000,8403,9656"; a="130229837" X-IronPort-AV: E=Sophos;i="5.75,253,1589266800"; d="scan'208";a="130229837" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2020 23:23:33 -0700 IronPort-SDR: PLxqCZVN0tWKDo2xPNdQxVudd9keF4c2GkA7oBIQHJxgHcbJPlIbkdVD50gqz9ymTeZCXH4Q18 tG5qB7gYBrrw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,253,1589266800"; d="scan'208";a="310071699" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 18 Jun 2020 23:23:33 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jun 2020 23:23:33 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jun 2020 23:23:32 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.221]) with mapi id 14.03.0439.000; Fri, 19 Jun 2020 14:23:30 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" , "Han, YingyaX" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/vmdq: recorrect the dst mac of pcap Thread-Index: AQHWRRRYuAdvGoa2J0yd5CYefr2H66jfeh0w Date: Fri, 19 Jun 2020 06:23:28 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5FDC6@SHSMSX101.ccr.corp.intel.com> References: <1592418562-325-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1592418562-325-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks -----Original Message----- From: dts On Behalf Of lihong Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B18=1B$BF|=1B(B 2:29 To: dts@dpdk.org; Han, YingyaX Cc: Ma, LihongX Subject: [dts] [PATCH V1] tests/vmdq: recorrect the dst mac of pcap 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 e5dcd8= 2..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) =3D=3D 0 or len(self.dut_ports)= % _port =3D=3D 2: txIntf =3D self.tester.get_local_port(self.dut_ports[_port= + 1]) + dst_port =3D _port + 1 else: txIntf =3D self.tester.get_local_port(self.dut_ports[_port= - 1]) + dst_port =3D _port - 1 rxIntf =3D self.tester.get_local_port(self.dut_ports[_port]) - self.tester.scapy_append('flows =3D [Ether(dst=3D"%s")/Dot1Q(v= lan=3D0)/("X"*%d)]' - % (self.destmac_port[txIntf], payload= )) + self.tester.scapy_append('flows =3D [Ether(dst=3D"%s")/Dot1Q(v= lan=3D0)/IP(src=3D"1.2.3.4", dst=3D"1.1.1.1")/("X"*%d)]' + % (self.destmac_port[dst_port],=20 + payload)) pcap =3D os.sep.join([self.output_path, "%s-%d.pcap" % (self.s= uite_name, _port)]) self.tester.scapy_append('wrpcap("%s", flows)' % pcap) self.tester.scapy_execute() -- 2.7.4