From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A06FD2B88 for ; Mon, 5 Sep 2016 02:15:59 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP; 04 Sep 2016 17:15:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,284,1470726000"; d="scan'208";a="4497729" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 04 Sep 2016 17:15:58 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 4 Sep 2016 17:15:57 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 4 Sep 2016 17:15:57 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.91]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.174]) with mapi id 14.03.0248.002; Mon, 5 Sep 2016 08:15:55 +0800 From: "Xu, HuilongX" To: "Tu, LijuanX A" , "dts@dpdk.org" CC: "Tu, LijuanX A" Thread-Topic: [dts] [PATCH 1/2] vxlan: fix vlan load pcap error Thread-Index: AQHSBMZj6xzLodKNvUWa4IYxwqMui6BqC69A Date: Mon, 5 Sep 2016 00:15:54 +0000 Message-ID: References: <1472784791-15853-1-git-send-email-lijuanx.a.tu@intel.com> <1472784976-15927-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1472784976-15927-1-git-send-email-lijuanx.a.tu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH 1/2] vxlan: fix vlan load pcap error 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: , X-List-Received-Date: Mon, 05 Sep 2016 00:16:00 -0000 Acked-by: huilong xu > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lijuan Tu > Sent: Friday, September 02, 2016 10:56 AM > To: dts@dpdk.org > Cc: Tu, LijuanX A > Subject: [dts] [PATCH 1/2] vxlan: fix vlan load pcap error >=20 > vxlan is not supported by scapy, > and thus the packets are interpreted as raw packets. >=20 > Signed-off-by: Lijuan Tu > --- > tests/TestSuite_vxlan.py | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py > index c1d0200..d5274fc 100644 > --- a/tests/TestSuite_vxlan.py > +++ b/tests/TestSuite_vxlan.py > @@ -24,7 +24,7 @@ from scapy.config import conf > from scapy.route import * >=20 > from test_case import TestCase > -from settings import HEADER_SIZE > +from settings import HEADER_SIZE, FOLDERS > from etgen import IxiaPacketGenerator >=20 > # > @@ -236,6 +236,11 @@ class VxlanTestConfig(object): > """ > Send vxlan pcap file by iface > """ > + # load vxlan module to scapy > + cwd =3D os.getcwd() > + dir_vxlan_module =3D cwd + r'/' + FOLDERS['Depends'] > + self.test_case.tester.scapy_append("sys.path.append('%s')" % > dir_vxlan_module) > + self.test_case.tester.scapy_append("from vxlan import Vxlan") > self.test_case.tester.scapy_append( > 'pcap =3D rdpcap("%s")' % self.pcap_file) > self.test_case.tester.scapy_append( > -- > 1.9.3