From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0111B42854; Tue, 28 Mar 2023 09:39:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C409F40A87; Tue, 28 Mar 2023 09:39:36 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id B745640156 for ; Tue, 28 Mar 2023 09:39:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679989175; x=1711525175; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Jo5CsQf4Xxm9aRYfeZg8oRcOKInfGwgWe6iSlqsdeeA=; b=WFE0/7/hk9/67++hRgq4t2hJgVvGrYrUjFkTKzF/B2vVkGL1RkeghJte 81bGNWKSj/XD38V0l28K2npb8mhdr6JcqFjaAfhhq7RdA0t7pkv88DD+z 4L5uFQVC7NcHIQ8iCPG6Oh1RCdABJ6zfrWtYn4JBd5+Bh4HtbNlQetg76 ENFxfh4YbgomcduJe2OwVDXOKExqQdhHUzDhimug9z18ZfHp3IW5xurbK x4bXDuY4fCaCxGN4dek3mIiKDcdFugQBe7m8ZAPad1H6uVC/Oj/Dedq58 XO6xb6JODTX+YjE471/JipPoN1a8+3IX9M0vsAftswA5NlegWLFEjpq+E Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="320895892" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="320895892" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:39:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="807767162" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="807767162" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:39:22 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V2] framework/packet: optimize support for more gtp modules Date: Tue, 28 Mar 2023 15:39:45 +0800 Message-Id: <20230328073945.25760-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 For packet.py, only support limited gtp modules, some test cases require support for the echo-request/echo-reponse modules. Signed-off-by: Weiyuan Li --- v2: -fix format issue. framework/packet.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/packet.py b/framework/packet.py index f56bf178..ae99b6b7 100644 --- a/framework/packet.py +++ b/framework/packet.py @@ -45,7 +45,12 @@ if not os.path.exists(TMP_PATH): os.system("mkdir -p %s" % TMP_PATH) scapy_modules_required = { - "scapy.contrib.gtp": ["GTP_U_Header", "GTPPDUSessionContainer"], + "scapy.contrib.gtp": [ + "GTP_U_Header", + "GTPPDUSessionContainer", + "GTPEchoRequest", + "GTPEchoResponse", + ], "scapy.contrib.lldp": ["LLDPDU", "LLDPDUManagementAddress"], "scapy.contrib.pfcp": ["PFCP"], "scapy.contrib.nsh": ["NSH"], -- 2.27.0