From patchwork Fri Dec 3 11:38:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xiaoyun" X-Patchwork-Id: 104852 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 D20F1A0C45; Fri, 3 Dec 2021 12:48:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57DE14014F; Fri, 3 Dec 2021 12:48:21 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 8013E40041 for ; Fri, 3 Dec 2021 12:48:19 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10186"; a="236772807" X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="236772807" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2021 03:48:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="513677148" Received: from dpdk-xiaoyun3.sh.intel.com ([10.67.119.214]) by orsmga008.jf.intel.com with ESMTP; 03 Dec 2021 03:48:16 -0800 From: Xiaoyun Li To: ferruh.yigit@intel.com, olivier.matz@6wind.com, mb@smartsharesystems.com, konstantin.ananyev@intel.com, stephen@networkplumber.org, vladimir.medvedkin@intel.com Cc: dev@dpdk.org, Xiaoyun Li Subject: [PATCH v4 0/2] Add functions to calculate UDP/TCP cksum in mbuf Date: Fri, 3 Dec 2021 19:38:03 +0800 Message-Id: <20211203113805.1025301-1-xiaoyun.li@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211015051306.320328-1-xiaoyun.li@intel.com> References: <20211015051306.320328-1-xiaoyun.li@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Added functions to calculate UDP/TCP checksum for packets which may be over multi-segments and fix the checksum issue with testpmd csum forwarding mode. Xiaoyun Li (2): net: add functions to calculate UDP/TCP cksum in mbuf testpmd: fix l4 sw csum over multi segments Tested-by: Sunil Pai G --- v4: * Called rte_raw_cksum_mbuf() to calculate cksum in lib instead of * implementing it in testpmd for better maintenance. * Removed fix tag for testpmd since it relies on the lib change. v3: * Use rte_raw_cksum() for multi-segs case instead of copying the whole * packet. v2: * Use static stack memory instead of dynamic allocating in datapath --- app/test-pmd/csumonly.c | 41 ++++-- doc/guides/rel_notes/release_22_03.rst | 10 ++ lib/net/rte_ip.h | 186 +++++++++++++++++++++++++ lib/net/version.map | 10 ++ 4 files changed, 232 insertions(+), 15 deletions(-)