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 E74B5A0A02; Tue, 27 Apr 2021 15:58:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D066C41243; Tue, 27 Apr 2021 15:58:24 +0200 (CEST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mails.dpdk.org (Postfix) with ESMTP id 32961406A3 for ; Tue, 27 Apr 2021 15:58:23 +0200 (CEST) Received: by mail-wr1-f53.google.com with SMTP id t18so1993258wry.1 for ; Tue, 27 Apr 2021 06:58:23 -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:mime-version :content-transfer-encoding; bh=IrDRZzLn0RkzPuk8N/jIAczl2hpr9k54b5VAs48ERzE=; b=bbrpHLH3Ozxit2qUn5J6D9T7lwhd0LekjUXFDpcYEX+IpxG1A/Bi4uC59JhWBxRdJ0 X/Fq11iVXzqOIwTNe8XhR6qVE5D9ZmV215F2ygk3leyN++axCbZVeBepIz7+s80AkkJW 6kDj5XrniAnG0SLYn3PU8EH28ByQFIUGjDFX1HNFHbsaUNfeQsfIIfR8ca1n1qzNM+Jp Sa+dkhBjvSwcDqXEvZ0J55hv5WUnR7Hk0awXxe7I17jvOPiybtzB7clUQSgXJaaWjuws ucAZRtc5LaFhRR35ip6QO3pbLYQqZadSb/cKd9c0a8YKW5BUmbW0+gf9wnkGiioSGdDY znWw== 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:mime-version :content-transfer-encoding; bh=IrDRZzLn0RkzPuk8N/jIAczl2hpr9k54b5VAs48ERzE=; b=jcLMRMmd4B/pjfvuwL4Jai7pUj5TrCP+0OMvJWmpNK67d0UQIyuC7yHmB8xeX6zqyz e8l+FZmY8CQlxt8qjEKAbUo85bbqhE8ZW2lQ/G84VN4txFx3OWOPP0+1J+I1oSWZjGbG /zKN77XPv2s1FAvFJQw62juQmF99Mf+QyEc74Ya/vnmSakgP0eMhenUWsUK9YCga+hYa BkNF2/Tam6w3iCP93SHmRNkGP5vexN8VNKn/OJl3HnPDtEencO6ymY/QAUi8qvSrVM4L zM4xhWZfJkhQ/JKqLFz8NADg1IbyrR6rp4z3AeKN58gvSjM3mVWMnTBCtHUMrG1wtd9T nrPA== X-Gm-Message-State: AOAM533nk22OY7acM1772KFkP2/GcuvhJJOVLHy8eUCbumfr+oN2KN/J dcrPpLPz+LofO4iXhLJTGcJAB/DuzAhb0Q== X-Google-Smtp-Source: ABdhPJxLtZ0aPII8sG+/ritQgLeebc0GofAX3iBA5Wz2oTAFVRsoAn5d4+ManOvgoLS0LCkP9nwNug== X-Received: by 2002:adf:9b96:: with SMTP id d22mr16421908wrc.225.1619531902954; Tue, 27 Apr 2021 06:58:22 -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 h9sm21072213wmb.35.2021.04.27.06.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Apr 2021 06:58:22 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Cc: Keith Wiles , Hongzhi Guo , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Thomas Monjalon Date: Tue, 27 Apr 2021 15:57:51 +0200 Message-Id: <20210427135755.927-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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. The last 2 patches may be postponed to 20.08 if required. 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 | 17 ++- lib/net/rte_ip.h | 124 +++++++++++++--- 6 files changed, 390 insertions(+), 31 deletions(-) create mode 100644 app/test/test_cksum.c -- 2.29.2