From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 20F22A0561; Mon, 20 Apr 2020 21:25:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C9081C1B8; Mon, 20 Apr 2020 21:25:35 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 2B3E51C1B3 for ; Mon, 20 Apr 2020 21:25:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587410733; 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: in-reply-to:in-reply-to:references:references; bh=qPy1yUIwfwv8ireFZyOLniRl+4cvGHpoBEdKigWLbzs=; b=AWgPcc9Gubk+VAkaGe95G10SVBCeECjTaqExYhla6SMSeK7rsWc/UIVYdDbO6en21I02J2 oNrWN0CsStgNLP3wmNth2mS5ckhR4jaVlXs82uW5kZOPpFEbvSoSvu9Hukt9nM4MjFQRvU Aee/IuwlrZzHz9VR6Jd6kVJ5aykPynY= 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-5-2UWSBrVdNOmhXM-3awSQ6Q-1; Mon, 20 Apr 2020 15:25:30 -0400 X-MC-Unique: 2UWSBrVdNOmhXM-3awSQ6Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AAD6E800D5C; Mon, 20 Apr 2020 19:25:28 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (ovpn-114-167.rdu2.redhat.com [10.10.114.167]) by smtp.corp.redhat.com (Postfix) with ESMTP id 931C85C1BB; Mon, 20 Apr 2020 19:25:24 +0000 (UTC) From: Aaron Conole To: dev@dpdk.org Cc: Pavan Nikhilesh , Bruce Richardson , David Marchand , Ferruh Yigit , Anatoly Burakov , Lukasz Wojciechowski Date: Mon, 20 Apr 2020 15:25:20 -0400 Message-Id: <20200420192523.2546909-1-aconole@redhat.com> In-Reply-To: <20200417131410.1343135-1-aconole@redhat.com> References: <20200417131410.1343135-1-aconole@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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 v6 0/3] 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. v5->v6: - Coding style fixes - Use named defines instead of bare MTU decimal values. v4->v5: - Address coding style comments in patch 3/3 v3->v4: - Drop the frag header detection from ipv6 code - Full parameter sanity checking in ipv4 and ipv6 code - Convert from htons/htonl to rte_cpu_to_be_... v2->v3: - Remove c99-ism from 4/4 v1->v2: - Fix patch 4/4 which had a missing assignment for pktid. Aaron Conole (3): ip_frag: ensure minimum v4 fragmentation length ip_frag: ensure minimum v6 fragmentation length ipfrag: add unit test case MAINTAINERS | 1 + app/test/meson.build | 2 + app/test/test_ipfrag.c | 262 ++++++++++++++++++++ lib/librte_ip_frag/rte_ipv4_fragmentation.c | 10 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 9 + lib/librte_net/rte_ip.h | 2 + 6 files changed, 286 insertions(+) create mode 100644 app/test/test_ipfrag.c --=20 2.25.1