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 0E33BA0563; Wed, 15 Apr 2020 20:59:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 742461D986; Wed, 15 Apr 2020 20:59:09 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id A60F41D97C for ; Wed, 15 Apr 2020 20:59:07 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03FIpjV2026419; Wed, 15 Apr 2020 11:59:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=55G9Y1XM3qMZNt++S5MvyEARV0sex3omcFA4tcr2Fs0=; b=G8YBmQSuBRH1xFZPIS587S2jHUt74JKBZ94SvMA7jMTbdnO8YMsYVRkONKmn6gU636Le e7RBmCvDJk2zwdsNFOOSszlsOMHmVXsPiziXMzAdp0h63xpuk7/WxYKxHIYIcL0kygR4 jmMn1iUWI4jwHewt+WfSTQEyhjy4lhCQYr/5k0qNMU99v16KvrNIL3hR6JuzKHtS/hjE mwVQDTMDHMa+GepLBQdr+gdMqgYzcp93xkumMCG/1mQkii+8AYKkQcRw8rtvSaoFt+J3 0ZZ9OylxxQd9YZxZmeBO9tsN1XCjfGCqjNgCzm3vo+ciIJ7P8gNe2dr4VahPP8EGQft4 9w== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 30dn84kttb-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 15 Apr 2020 11:59:06 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Apr 2020 11:59:04 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.102) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 15 Apr 2020 11:59:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m3xEbcXkVZ/4b+SdUbdjDY7S/qn/ub81YeCA9+583ZqPlUXvlQFCS+6IhXGhBmvuI2mIRnyPY0fHlfr8U1JlECoUwAk3jcRPKuaYsBKpBGv6GcdxojWOZTzqw7fx3QNrMI04fb+/CMFDfvynEtFfDOvfIqlCfxn7FZEi7J9xyRV4bwCEmdOSPgaH7DvHu4aMxMzW0h0IpzsEbEfmqNbzBAlCcOfgqTgqEV8V5rIiRSeLYUXS4YTAZqi5q8fqpJgga3ug6eKwBSAqdweCBPKVWkq305EstVltqgiLlLl7ihuhc5Qe0KOIGWGo5ZsegSxg8dY2Rz5CoO1XdV6hmVxRKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=55G9Y1XM3qMZNt++S5MvyEARV0sex3omcFA4tcr2Fs0=; b=bvUwjrjH7A2GP1eyvflF1cU8ngpl93+I5uiQruJUfjdN8uUSw2nn0omoRQSTwSprVRSOBccTLSm/pCDG1UJ5JfCk24O8FKyBIIiYE2ChLyu/yEwotK70WQt7kLtlad6TjfjMiHJ3jkFFiuvluCLekgOSbC5C7xONkZHYpLXRI7HMgfngH1+zOxybjRnqMl45O7qDrK2+qd5cCdfeioCTSfMqrsnGfEBisJc8th7rDm7zv4m6DizH/Ri8hqXFR1Av6dGGDW+J1VZ2UYnnx/PFe30ds+ur1T71c2o28WBLLbb0hF8j4BubbvGEsPAOOrahw1rE7faNwv9B595HDqcp5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=55G9Y1XM3qMZNt++S5MvyEARV0sex3omcFA4tcr2Fs0=; b=QsVuAX/CdGutJ1aSi0RL7Y7fmlY4hf0S9++Oq41NV/aikTo8ZML4i0ZAOCc8SFiRTdx31EF8IwvU3acnrpt8Jo59vp1kz+N09kZR/8l+OoE+g6umkludvaWuJQTTP4FzMbztSe0PIdQ223/sEeZDeMkjdBH9TTPQBOmG0Gp/EoA= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (2603:10b6:910:7b::32) by CY4PR1801MB1958.namprd18.prod.outlook.com (2603:10b6:910:7b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.28; Wed, 15 Apr 2020 18:58:58 +0000 Received: from CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::7424:c6cd:94f2:b27b]) by CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::7424:c6cd:94f2:b27b%4]) with mapi id 15.20.2900.026; Wed, 15 Apr 2020 18:58:58 +0000 From: Pavan Nikhilesh Bhagavatula To: Aaron Conole , "dev@dpdk.org" CC: Konstantin Ananyev , Bruce Richardson , David Marchand , Ferruh Yigit , Anatoly Burakov Thread-Topic: [PATCH v4 3/3] ipfrag: add unit test case Thread-Index: AdYTV6k5uHKog6/IS0yQ1ff09nAI2w== Date: Wed, 15 Apr 2020 18:58:58 +0000 Message-ID: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [171.61.127.90] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 24a36fa5-cfc6-420e-ba75-08d7e16f0db3 x-ms-traffictypediagnostic: CY4PR1801MB1958: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:337; x-forefront-prvs: 0374433C81 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR1801MB1863.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(366004)(346002)(396003)(39860400002)(136003)(376002)(52536014)(4326008)(8676002)(2906002)(76116006)(316002)(66946007)(8936002)(33656002)(66476007)(81156014)(86362001)(71200400001)(5660300002)(54906003)(66446008)(64756008)(9686003)(66556008)(7696005)(110136005)(6506007)(55016002)(186003)(478600001)(26005); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pnybohymKkE2whQ8ADY5GMGR3/As4PoJluO81i18IFSNa3mZsuup0H/yHMVx8Mbrubh+SnG8x+nlhB54qtRw1gGCwmqCae/b6EmT3L4QpiIEjF64Wgopf8aihhSsYLhFT4XoedIgw1RKfYMg/gs9S6O6s4EBwvfk8ka6iL56gwRXZGYikEDL6Bv2DUBC5XHAgmexKha1dRH14pLD8RplMb0+PZnQMwQDBMGPPXlo0daci7P+kEwIKbIgzW0EdJDoziLMXuEnJpFYJVvtKJKUNzah+aILkptO0tGj7hrYMZErnp59dFweF2HNF2+tjIaaLDeL7sp2dcs1GupN3F0gMd01LlamEmj1v0d2xQ2ravuCiJISy6CKvhfN6iIccd9RMXnrNdPgGlKXSA2kuR/bAjqLMw6eMVkpbQorqJS1yjP7dwVtKfCnE0tAgePz8+7v x-ms-exchange-antispam-messagedata: ZkATDzfnEw4Ux3BvKCI3XsGn2Op0lT3BR8BaCIv4N0OXYNIJEHUFOL3QnNK5xhPoypC4z9yzFRGmRcTdVUWulerzNxOKIqWgI8qlZwwl6967+sc3vNapTYFTEAQGLvWaazcbgnQR3wcCQlHAaO/4/Q== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 24a36fa5-cfc6-420e-ba75-08d7e16f0db3 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2020 18:58:58.2197 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0mme1aCdNk4lkaLkDUsJclNk90Jn9BPP6vG1R/WR2dttcwcIp3C7nlupcAN0vrZv/5aA3gUPpzYb4WYmyKzj79gy+ZG7FLpGn8mRQ+CTNSg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1958 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-04-15_06:2020-04-14, 2020-04-15 signatures=0 Subject: Re: [dpdk-dev] [PATCH v4 3/3] ipfrag: add unit test case 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" >Initial IP fragmentation unit test. > >Signed-off-by: Aaron Conole >--- > MAINTAINERS | 1 + > app/test/meson.build | 2 + > app/test/test_ipfrag.c | 276 >+++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 279 insertions(+) > create mode 100644 app/test/test_ipfrag.c > >diff --git a/MAINTAINERS b/MAINTAINERS >index fe59f0224f..a77c7c17ce 100644 >--- a/MAINTAINERS >+++ b/MAINTAINERS >@@ -1228,6 +1228,7 @@ F: app/test/test_crc.c > IP fragmentation & reassembly > M: Konstantin Ananyev > F: lib/librte_ip_frag/ >+F: app/test/test_ipfrag.c > F: doc/guides/prog_guide/ip_fragment_reassembly_lib.rst > F: examples/ip_fragmentation/ > F: doc/guides/sample_app_ug/ip_frag.rst >diff --git a/app/test/meson.build b/app/test/meson.build >index 04b59cffa4..4b3c3852a2 100644 >--- a/app/test/meson.build >+++ b/app/test/meson.build >@@ -58,6 +58,7 @@ test_sources =3D files('commands.c', > 'test_hash_perf.c', > 'test_hash_readwrite_lf_perf.c', > 'test_interrupts.c', >+ 'test_ipfrag.c', > 'test_ipsec.c', > 'test_ipsec_sad.c', > 'test_kni.c', >@@ -187,6 +188,7 @@ fast_tests =3D [ > ['flow_classify_autotest', false], > ['hash_autotest', true], > ['interrupt_autotest', true], >+ ['ipfrag_autotest', false], > ['logs_autotest', true], > ['lpm_autotest', true], > ['lpm6_autotest', true], >diff --git a/app/test/test_ipfrag.c b/app/test/test_ipfrag.c >new file mode 100644 >index 0000000000..6a13e334d5 >--- /dev/null >+++ b/app/test/test_ipfrag.c >@@ -0,0 +1,276 @@ >+/* SPDX-License-Identifier: BSD-3-Clause >+ * Copyright(c) 2020 Red Hat, Inc. >+ */ >+ >+#include >+ >+#include >+#include >+#include >+#include >+#include >+#include >+#include >+#include >+ >+#include "test.h" >+ >+#ifndef ARRAY_SIZE >+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) >+#endif Please use RTE_DIM recently we had a major cleanup of ARRAY_SIZE across DPD= K. Thanks,=20 Pavan. >+ >+static struct rte_mempool *pkt_pool, >+ *direct_pool, >+ *indirect_pool; >+