DPDK patches and discussions
 help / color / mirror / Atom feed
From: Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>
To: Aaron Conole <aconole@redhat.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: Konstantin Ananyev <konstantin.ananyev@intel.com>,
	Bruce Richardson <bruce.richardson@intel.com>,
	David Marchand <david.marchand@redhat.com>,
	Ferruh Yigit <ferruh.yigit@intel.com>,
	Anatoly Burakov <anatoly.burakov@intel.com>
Subject: Re: [dpdk-dev] [PATCH v4 3/3] ipfrag: add unit test case
Date: Wed, 15 Apr 2020 18:58:58 +0000	[thread overview]
Message-ID: <CY4PR1801MB18633DAF316F54CA4931A025DEDB0@CY4PR1801MB1863.namprd18.prod.outlook.com> (raw)


>Initial IP fragmentation unit test.
>
>Signed-off-by: Aaron Conole <aconole@redhat.com>
>---
> 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 <konstantin.ananyev@intel.com>
> 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 = 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 = [
>         ['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 <time.h>
>+
>+#include <rte_common.h>
>+#include <rte_cycles.h>
>+#include <rte_hexdump.h>
>+#include <rte_ip.h>
>+#include <rte_ip_frag.h>
>+#include <rte_mbuf.h>
>+#include <rte_memcpy.h>
>+#include <rte_random.h>
>+
>+#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 DPDK.

Thanks, 
Pavan.

>+
>+static struct rte_mempool *pkt_pool,
>+			  *direct_pool,
>+			  *indirect_pool;
>+


             reply	other threads:[~2020-04-15 18:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15 18:58 Pavan Nikhilesh Bhagavatula [this message]
2020-04-16 12:45 ` Aaron Conole
  -- strict thread matches above, loose matches on Subject: below --
2020-04-01 18:39 [dpdk-dev] [PATCH v3 0/4] ip_frag: add a unit test for fragmentation Aaron Conole
2020-04-15 17:25 ` [dpdk-dev] [PATCH v4 0/3] " Aaron Conole
2020-04-15 17:25   ` [dpdk-dev] [PATCH v4 3/3] ipfrag: add unit test case Aaron Conole
2020-04-16 15:30     ` Lukasz Wojciechowski
2020-04-16 18:52       ` Aaron Conole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CY4PR1801MB18633DAF316F54CA4931A025DEDB0@CY4PR1801MB1863.namprd18.prod.outlook.com \
    --to=pbhagavatula@marvell.com \
    --cc=aconole@redhat.com \
    --cc=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=konstantin.ananyev@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).