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 13B4FA2EFC for ; Wed, 18 Sep 2019 12:35:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F39B11C23D; Wed, 18 Sep 2019 12:35:28 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id C07581C22E for ; Wed, 18 Sep 2019 12:35:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2019 03:35:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,520,1559545200"; d="scan'208";a="194026090" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 18 Sep 2019 03:35:26 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 18 Sep 2019 03:35:26 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 18 Sep 2019 03:35:26 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0439.000; Wed, 18 Sep 2019 18:35:24 +0800 From: "Tu, Lijuan" To: "pvukkisala@marvell.com" , "dts@dpdk.org" CC: "avijay@marvell.com" , "fmasood@marvell.com" Thread-Topic: [dts] [PATCH] packet: Add support to send geneve packets from scapy Thread-Index: AQHVZw5sXOkRdvu9yE6R720fXP6j9KcxS2aw Date: Wed, 18 Sep 2019 10:35:24 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB23DD0@SHSMSX101.ccr.corp.intel.com> References: <1568033946-31996-1-git-send-email-pvukkisala@marvell.com> In-Reply-To: <1568033946-31996-1-git-send-email-pvukkisala@marvell.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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTVhYjBkYTUtNGIxZS00Y2Q1LWIzMTEtNmQ2MGFkNDhhOTU4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibGNwZUlTQkt5S0pxejlqMnNJbjNGbmNXZ0JNa0JHMTVOTmNWMFhcL2tHbWEwZE94cGZSTEVvbXBtWUJyeW5qSUwifQ== 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] packet: Add support to send geneve packets from scapy 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 [mailto:dts-bounces@dpdk.org] On Behalf Of > pvukkisala@marvell.com > Sent: Monday, September 9, 2019 8:59 PM > To: dts@dpdk.org > Cc: avijay@marvell.com; fmasood@marvell.com; Phanendra Vukkisala > > Subject: [dts] [PATCH] packet: Add support to send geneve packets from > scapy >=20 > From: Phanendra Vukkisala >=20 > Signed-off-by: Phanendra Vukkisala > --- > framework/packet.py | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/packet.py b/framework/packet.py index > 502d85c..ac8402d 100755 > --- a/framework/packet.py > +++ b/framework/packet.py > @@ -57,6 +57,7 @@ from scapy.route import * from scapy.packet import > bind_layers, Raw from scapy.sendrecv import sendp from scapy.arch impor= t > get_if_hwaddr > +from scapy.contrib.geneve import GENEVE > from pexpect import pxssh >=20 > # load extension layers > @@ -145,7 +146,7 @@ class scapy(object): > 'ipv6_in_ip': IP() / IPv6(src=3D"::1"), > 'ipv6_frag_in_ip': IP() / IPv6(src=3D"::1", nh=3D44) / IPv6ExtHd= rFragment(), > 'nvgre': NVGRE(), > - 'geneve': "Not Implement", > + 'geneve': GENEVE(), > } >=20 > def __init__(self): > @@ -555,6 +556,7 @@ class Packet(object): > 'GRE': 'gre', > 'VXLAN': 'vxlan', > 'PKT': 'raw', > + 'GENEVE': 'geneve', > } >=20 > layers =3D self.pkt_type.split('_') > -- > 1.7.9.5