From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 943F02B9C for ; Mon, 5 Sep 2016 05:42:28 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 04 Sep 2016 20:42:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,284,1470726000"; d="scan'208";a="4534534" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 04 Sep 2016 20:42:27 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 4 Sep 2016 20:42:26 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 4 Sep 2016 20:42:26 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.102]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.250]) with mapi id 14.03.0248.002; Mon, 5 Sep 2016 11:42:23 +0800 From: "Liu, Yong" 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: AQHSBMZjBviw9b9joEOCZOO3dkNVJaBqQ2Ug Date: Mon, 5 Sep 2016 03:42:24 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E6022C1F2@SHSMSX103.ccr.corp.intel.com> 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: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWNkMDllYzUtNzdmOS00MGJlLWI1ZWQtOGZkMDcyM2JmNGE5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImQ0OWVkUkNsbHJHSGk5amNkUUUxbWtcL0JtRlQ5OFJuYUE5QUNLck1rR3A0PSJ9 x-ctpclassification: CTP_IC 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 03:42:29 -0000 Lijuan, send_pcap function just loaded pcap and sent it out. There's no nee= d to load internal module, is this one bug in scapy? > -----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