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 63176A2EDC for ; Mon, 9 Sep 2019 14:59:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 559CB1EAEA; Mon, 9 Sep 2019 14:59:17 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 169F81EAD1 for ; Mon, 9 Sep 2019 14:59:15 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x89CtBUw031264 for ; Mon, 9 Sep 2019 05:59:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=KGlUpA3jBlAIr68TtZ4uOIhB3Ylz5vAtvk5Hbeogkq8=; b=b8m9tHOjUZhpJ+ANWvTRwdBTs9ZDvlx0Jw9pnDslBrhapkFGv21KBx8yPNtT53oL9kta RLtekyySgoqmHzYRjGUnEU91ngGqreti99kc3DjrmecW+tpKjIGPzknJy1oI9GrrhnhB ucBJYzNFtU9MHyEejF91mlN2Mw8KDRjdeGK1Y9q5B7d2j6+eR2F3lK9DYQ94EwgHIIzf 94EgzD4ZLWpsPSb/+OIxLFit4Wi4ZvIufYSlVGCZ9sWmVWMV4qzuZ9cSpNH2Lx5KOkWM GSc476G0XMIg7Sfwev73Zw7n0KOA5Fallsg0N7FHn4rXg+yInR559HOtUNe7Kelxy7v2 Kw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2uvc2jev6m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 09 Sep 2019 05:59:15 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 9 Sep 2019 05:59:13 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Mon, 9 Sep 2019 05:59:13 -0700 Received: from phanendra-system.marvell.com (unknown [10.28.11.20]) by maili.marvell.com (Postfix) with ESMTP id 25F123F703F; Mon, 9 Sep 2019 05:59:11 -0700 (PDT) From: To: CC: , , Phanendra Vukkisala Date: Mon, 9 Sep 2019 18:29:06 +0530 Message-ID: <1568033946-31996-1-git-send-email-pvukkisala@marvell.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-09_05:2019-09-09,2019-09-09 signatures=0 Subject: [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" From: Phanendra Vukkisala Signed-off-by: Phanendra Vukkisala --- framework/packet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 import get_if_hwaddr +from scapy.contrib.geneve import GENEVE from pexpect import pxssh # load extension layers @@ -145,7 +146,7 @@ class scapy(object): 'ipv6_in_ip': IP() / IPv6(src="::1"), 'ipv6_frag_in_ip': IP() / IPv6(src="::1", nh=44) / IPv6ExtHdrFragment(), 'nvgre': NVGRE(), - 'geneve': "Not Implement", + 'geneve': GENEVE(), } def __init__(self): @@ -555,6 +556,7 @@ class Packet(object): 'GRE': 'gre', 'VXLAN': 'vxlan', 'PKT': 'raw', + 'GENEVE': 'geneve', } layers = self.pkt_type.split('_') -- 1.7.9.5