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 87535A0A0F; Wed, 30 Jun 2021 15:52:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6EE4C4126B; Wed, 30 Jun 2021 15:52:28 +0200 (CEST) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mails.dpdk.org (Postfix) with ESMTP id AAA2C40040 for ; Wed, 30 Jun 2021 15:52:27 +0200 (CEST) Received: by mail-wr1-f50.google.com with SMTP id m18so3780188wrv.2 for ; Wed, 30 Jun 2021 06:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2i4/itTHlpSoVuPbUsJz6Ack5MT/0hR7FwCZvuUA/c0=; b=FDHm3qCOrYL7+3az7dmYmW/zX5+aJXAgvuqI8r6UjvaUVyHSNAJvysAUk+EXZ83XF9 Fins++voepknEzs8mQ4yQIJZQiJ07/KdI1IMAuvEsNWMgWFQsnUjZctvGBNaxV79yCwC FUuaSFINmj6pBzej8Q+7KbM95OPJCB1HP/PVmB7wgi3cpCICz8nNHK6A9AaZPFexSfla yV4JQeQvlDbdLvIcudM/J8T7TRpIHceOdraTdbIveZGbMXh+cDsWdl5YjkuPi6BWId2L ybfWTszlgtgyAIqZW3pu51u+ztp5niDnWIERL64bScdTDuOQXrPw8y0S3YsAbe5dWMSM 83Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2i4/itTHlpSoVuPbUsJz6Ack5MT/0hR7FwCZvuUA/c0=; b=TO4IUs8uqIPE25NfV/IgpNTGYFlU2t5xlFw3uxOAVQlQqjUX83r/kuMCSjnypEQfCb hev3inCU+zVCF7yU9nROBLnyO0R7e/R0d8+lJ29uH7siqASpfbpDric+Sb87plclSSO3 9uFBI9llaDm17j8NP0VcYlTaqAAfUfKPDlyvBBy3H+IdPbbORVMo+x8yuoxW3cOHixt2 Bs7IiVvmVQp00BObm7CV/YWf5ADcahmvSlscDaN4qw2cTzZQRG5HZl3stY4ECvWVTqUz BDPZI5v2SreKOco1GVNMG5cq2ccYtrvn7Z/Ok6PKLuhh8XBSEYl7WKfd1VanikbO1b5m VX0g== X-Gm-Message-State: AOAM533s6sLzVd0DrUhj7cnc2GMx4FfWtFj1X+ufQMrGEunBEfputOUN rBKzOzKWoGSJmBsmyuMqSabD2ZGWmZtiiQ== X-Google-Smtp-Source: ABdhPJzVmFMgk9q5DRvjKomda9KQCDHvy55ApiER9pLSkUOm6AdQzjgOpBcHtOiz3M240hqoDF0a/g== X-Received: by 2002:adf:cc87:: with SMTP id p7mr41541125wrj.105.1625061147394; Wed, 30 Jun 2021 06:52:27 -0700 (PDT) Received: from gojira.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id g15sm193026wrs.50.2021.06.30.06.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 06:52:26 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Cc: guohongzhi1@huawei.com, keith.wiles@intel.com, mb@smartsharesystems.com, thomas@monjalon.net, ferruh.yigit@intel.com, andrew.rybchenko@oktetlabs.ru Date: Wed, 30 Jun 2021 15:51:54 +0200 Message-Id: <20210630135158.8108-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210427135755.927-1-olivier.matz@6wind.com> References: <20210427135755.927-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/4] net/tap: fix Rx cksum 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 Sender: "dev" This patchset fixes the Rx checksum flags in net/tap driver. The first two patches are the effective fixes. The last 2 patches introduce a new checksum API to verify a L4 checksum and its unt test, in order to simplify the net/tap code, or any other code that has the same needs. v2: * clarify why RTE_PTYPE_L3_IPV4_EXT_UNKNOWN cannot happen in tap_verify_csum() (patch 1) * align style of rte_ipv6_udptcp_cksum_verify() to rte_ipv4_udptcp_cksum_verify() (patch 3) * clarify comment above rte_ipv4_udptcp_cksum_verify() and rte_ipv6_udptcp_cksum_verify() (patch 3) Olivier Matz (4): net/tap: fix Rx cksum flags on IP options packets net/tap: fix Rx cksum flags on TCP packets net: introduce functions to verify L4 checksums test/cksum: new test for L3/L4 checksum API MAINTAINERS | 1 + app/test/autotest_data.py | 6 + app/test/meson.build | 2 + app/test/test_cksum.c | 271 ++++++++++++++++++++++++++++++++++ drivers/net/tap/rte_eth_tap.c | 23 ++- lib/net/rte_ip.h | 127 +++++++++++++--- 6 files changed, 398 insertions(+), 32 deletions(-) create mode 100644 app/test/test_cksum.c -- 2.29.2