From patchwork Tue Jul 4 06:47:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 129235 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F44242DCC; Tue, 4 Jul 2023 08:47:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 755CC40F18; Tue, 4 Jul 2023 08:47:33 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id C613F40E03 for ; Tue, 4 Jul 2023 08:47:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688453252; x=1719989252; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Nj7gN7SoIpLaelXRRCYJgEuBCVvcjvcQwtgSG38OIEk=; b=PuBRWzYTwd0YhavBFdPn0Ie5TLeV0h/+k23pgT5zdemgmFXb/3OGusFX K7DxScIfCtvMGHy7w1HveczeAGJf4bgfgWZtM+xzB9UXGItkljvidYtBp OWx34MIULX0GZSff5ZHPVt4TNI6deRgFx1vUoJ8xXpKERJ1VvceCgnf6G AdVe6LYMD99VG5I2gi8enbzKO6B6B2l4mjD1PgeA1xg4OYCJ/Dap9Ebh+ FnnfRCEpXjuoA20HhI244epdxZf05rGhF4NP7oDQzRS3klmS3gVHa3uDE yARVniNbDZps5a4vKnuNRhSb1PUnE23kMLL4LzQixh0y55y/Ej4tJsJVM g==; X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="393791570" X-IronPort-AV: E=Sophos;i="6.01,179,1684825200"; d="scan'208";a="393791570" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 23:47:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="721995400" X-IronPort-AV: E=Sophos;i="6.01,179,1684825200"; d="scan'208";a="721995400" Received: from dpdk-xuke-host.sh.intel.com ([10.67.114.220]) by fmsmga007.fm.intel.com with ESMTP; 03 Jul 2023 23:47:20 -0700 From: Ke Xu To: dts@dpdk.org Cc: ke1.xu@intel.com, lijuan.tu@intel.com, zhiminx.huang@intel.com Subject: [DTS][PATCH V1 0/2] Updating packet module for new util functions and packet types. Date: Tue, 4 Jul 2023 06:47:24 +0000 Message-Id: <20230704064726.455361-1-ke1.xu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 Packet module is designed to support packet organizing, analyzing and processing of different packet types. This patch introduced several new functions and supported new packet types in this module. Added support for GTPU and GENEVE packet. Packet module only supports limited tunneling layers like VxLAN, GRE. New packet types are required in recent DPDK releases and GTPU and GENEVE are required to be added. Added new util functions. Packet module introduced several util functions for writing packets into files, getting and increasing IP addresses, getting ether types and so on. As more packet types are introduced, some other util functions are required. This patch implemented a set of packet layer indexing, packet payload, segment and checksum checking. This patch also fixed some bad doc strings. Ke Xu (2): framework/packet: Add GTPU and GENEVE support for packet module. framework/packet: Update packet module for new methods. framework/packet.py | 864 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 860 insertions(+), 4 deletions(-)