Message ID | 20211203113805.1025301-1-xiaoyun.li@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 <dev@dpdk.org>; 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 <xiaoyun.li@intel.com> 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 <xiaoyun.li@intel.com> 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Add functions to calculate UDP/TCP cksum in mbuf
|
|
Message
Li, Xiaoyun
Dec. 3, 2021, 11:38 a.m. UTC
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 --- 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(-)
Comments
Tested-by: Sunil Pai G <sunil.pai.g@intel.com>
Hi ,
Tested the series with OVS - with both TCP and UDP packets by printing out the csum before sending and after reception of packets from testpmd.
Getting expected csum values with this patch.
Thanks and regards
Sunil
<snipped>