From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB860C43331 for ; Tue, 31 Mar 2020 16:07:33 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 8624C206CC for ; Tue, 31 Mar 2020 16:07:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bpWrTDYa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8624C206CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 600572C15; Tue, 31 Mar 2020 18:07:32 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 2D6F82B8B for ; Tue, 31 Mar 2020 18:07:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585670850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LeOHcN3QQEffUooBQkUCpTovS2ljxEyv+Dk/TxEqgAk=; b=bpWrTDYas71gSvj7Hz2m0y6cSf+yoXFgfzkf9fY70APmMlUGi/k4hIUlWnus5TbLNfMuC6 D4GZ+9G4Z2rxmTY8dEEp88JSGpDHBVfG+OpntekrlAJcwABGQJds3EXngajAPh5CgfibuC q/McrWF4Y5y2UxEnxExfwtC33XdAc0w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-60-wYzjcpKxNaKUXD08BkPIww-1; Tue, 31 Mar 2020 12:07:25 -0400 X-MC-Unique: wYzjcpKxNaKUXD08BkPIww-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3DC59800D5C; Tue, 31 Mar 2020 16:07:24 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (ovpn-116-136.phx2.redhat.com [10.3.116.136]) by smtp.corp.redhat.com (Postfix) with ESMTP id F0A1996B96; Tue, 31 Mar 2020 16:07:16 +0000 (UTC) From: Aaron Conole To: dev@dpdk.org Cc: Konstantin Ananyev , Sunil Kumar Kori , Allain Legacy , Anatoly Burakov , Chas Williams , Piotr Azarewicz , Bruce Richardson , David Marchand Date: Tue, 31 Mar 2020 12:07:10 -0400 Message-Id: <20200331160714.697790-1-aconole@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH 0/4] ip_frag: add a unit test for fragmentation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 adds a simple unit test for the ip fragmentation library and covers fragmenting ipv4 and ipv6. Additionally, some fixes are introduced, which are really just sanity rather than real issues in the field. Aaron Conole (4): ip_frag: ensure minimum v4 fragmentation length ip_frag: ensure minimum v6 fragmentation length ip_frag: ipv6 fragments must not be resubmitted to fragmentation ipfrag: add unit test case MAINTAINERS | 1 + app/test/meson.build | 2 + app/test/test_ipfrag.c | 276 ++++++++++++++++++++ lib/librte_ip_frag/rte_ipv4_fragmentation.c | 6 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 15 ++ 5 files changed, 300 insertions(+) create mode 100644 app/test/test_ipfrag.c --=20 2.25.1