DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] test: add graph tests
@ 2023-06-19 20:46 David Marchand
  2023-06-19 20:46 ` [PATCH 2/2] lib: make graph optional David Marchand
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: David Marchand @ 2023-06-19 20:46 UTC (permalink / raw)
  To: dev

We forgot to add graph unit tests to the CI testsuites.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 app/test/meson.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/test/meson.build b/app/test/meson.build
index d0fabcbb8b..35d6baeb22 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -250,6 +250,8 @@ fast_tests = [
         ['thash_autotest', true, true],
         ['threads_autotest', true, true],
         ['trace_autotest', true, true],
+        ['graph_autotest', true, true],
+        ['node_list_dump', true, true],
 ]
 
 # Tests known to have issues or which don't belong in other tests lists.
@@ -298,6 +300,7 @@ perf_test_names = [
         'trace_perf_autotest',
         'ipsec_perf_autotest',
         'thash_perf_autotest',
+        'graph_perf_autotest',
 ]
 
 driver_test_names = [
-- 
2.40.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 2/2] lib: make graph optional
  2023-06-19 20:46 [PATCH 1/2] test: add graph tests David Marchand
@ 2023-06-19 20:46 ` David Marchand
  2023-06-20  6:56   ` Jerin Jacob
  2023-06-20  8:10   ` Bruce Richardson
  2023-06-20  6:45 ` [PATCH 1/2] test: add graph tests David Marchand
  2023-06-20  6:50 ` Jerin Jacob
  2 siblings, 2 replies; 13+ messages in thread
From: David Marchand @ 2023-06-19 20:46 UTC (permalink / raw)
  To: dev

Allow disabling of the graph library in builds.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 app/test/meson.build | 12 +++++++-----
 lib/meson.build      |  1 +
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/app/test/meson.build b/app/test/meson.build
index 35d6baeb22..c96488126f 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -61,8 +61,6 @@ test_sources = files(
         'test_fib6.c',
         'test_fib6_perf.c',
         'test_func_reentrancy.c',
-        'test_graph.c',
-        'test_graph_perf.c',
         'test_hash.c',
         'test_hash_functions.c',
         'test_hash_multiwriter.c',
@@ -250,8 +248,6 @@ fast_tests = [
         ['thash_autotest', true, true],
         ['threads_autotest', true, true],
         ['trace_autotest', true, true],
-        ['graph_autotest', true, true],
-        ['node_list_dump', true, true],
 ]
 
 # Tests known to have issues or which don't belong in other tests lists.
@@ -300,7 +296,6 @@ perf_test_names = [
         'trace_perf_autotest',
         'ipsec_perf_autotest',
         'thash_perf_autotest',
-        'graph_perf_autotest',
 ]
 
 driver_test_names = [
@@ -366,6 +361,13 @@ if dpdk_conf.has('RTE_LIB_FLOW_CLASSIFY')
     test_sources += 'test_flow_classify.c'
     fast_tests += [['flow_classify_autotest', false, true]]
 endif
+if dpdk_conf.has('RTE_LIB_GRAPH')
+    test_sources += 'test_graph.c'
+    fast_tests += [['graph_autotest', true, true]]
+    fast_tests += [['node_list_dump', true, true]]
+    test_sources += 'test_graph_perf.c'
+    perf_test_names += 'graph_perf_autotest'
+endif
 if dpdk_conf.has('RTE_LIB_METRICS')
     test_sources += ['test_metrics.c']
     fast_tests += [['metrics_autotest', true, true]]
diff --git a/lib/meson.build b/lib/meson.build
index 9677239236..7310021833 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -72,6 +72,7 @@ optional_libs = [
         'cfgfile',
         'flow_classify',
         'gpudev',
+        'graph',
         'gro',
         'gso',
         'kni',
-- 
2.40.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] test: add graph tests
  2023-06-19 20:46 [PATCH 1/2] test: add graph tests David Marchand
  2023-06-19 20:46 ` [PATCH 2/2] lib: make graph optional David Marchand
@ 2023-06-20  6:45 ` David Marchand
  2023-06-20  6:50 ` Jerin Jacob
  2 siblings, 0 replies; 13+ messages in thread
From: David Marchand @ 2023-06-20  6:45 UTC (permalink / raw)
  To: Jerin Jacob Kollanukkaran, Kiran Kumar Kokkilagadda,
	Nithin Dabilpuram, Zhirun Yan
  Cc: dev

Hello guys,

On Mon, Jun 19, 2023 at 10:47 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> We forgot to add graph unit tests to the CI testsuites.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Sorry, I forgot to Cc: you.
Can you have a look at this series?
Thanks.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] test: add graph tests
  2023-06-19 20:46 [PATCH 1/2] test: add graph tests David Marchand
  2023-06-19 20:46 ` [PATCH 2/2] lib: make graph optional David Marchand
  2023-06-20  6:45 ` [PATCH 1/2] test: add graph tests David Marchand
@ 2023-06-20  6:50 ` Jerin Jacob
  2023-06-20  6:56   ` David Marchand
  2 siblings, 1 reply; 13+ messages in thread
From: Jerin Jacob @ 2023-06-20  6:50 UTC (permalink / raw)
  To: David Marchand; +Cc: dev

On Tue, Jun 20, 2023 at 2:17 AM David Marchand
<david.marchand@redhat.com> wrote:
>
> We forgot to add graph unit tests to the CI testsuites.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Could we add Fixes: ?
Either way,
Acked-by: Jerin Jacob <jerinj@marvell.com>


> ---
>  app/test/meson.build | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/app/test/meson.build b/app/test/meson.build
> index d0fabcbb8b..35d6baeb22 100644
> --- a/app/test/meson.build
> +++ b/app/test/meson.build
> @@ -250,6 +250,8 @@ fast_tests = [
>          ['thash_autotest', true, true],
>          ['threads_autotest', true, true],
>          ['trace_autotest', true, true],
> +        ['graph_autotest', true, true],
> +        ['node_list_dump', true, true],
>  ]
>
>  # Tests known to have issues or which don't belong in other tests lists.
> @@ -298,6 +300,7 @@ perf_test_names = [
>          'trace_perf_autotest',
>          'ipsec_perf_autotest',
>          'thash_perf_autotest',
> +        'graph_perf_autotest',
>  ]
>
>  driver_test_names = [
> --
> 2.40.1
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] test: add graph tests
  2023-06-20  6:50 ` Jerin Jacob
@ 2023-06-20  6:56   ` David Marchand
  2023-06-20 10:32     ` Kevin Traynor
  0 siblings, 1 reply; 13+ messages in thread
From: David Marchand @ 2023-06-20  6:56 UTC (permalink / raw)
  To: Jerin Jacob, Kevin Traynor, Luca Boccassi, Xueming(Steven) Li; +Cc: dev

On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>
> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
> <david.marchand@redhat.com> wrote:
> >
> > We forgot to add graph unit tests to the CI testsuites.
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
>
> Could we add Fixes: ?
> Either way,
> Acked-by: Jerin Jacob <jerinj@marvell.com>

Indeed.
I don't think the graph unit tests and code changed much, so it should
be ok to backport down to 20.11 and enable these ut in the CI.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] lib: make graph optional
  2023-06-19 20:46 ` [PATCH 2/2] lib: make graph optional David Marchand
@ 2023-06-20  6:56   ` Jerin Jacob
  2023-06-20  7:09     ` David Marchand
  2023-06-20  8:10   ` Bruce Richardson
  1 sibling, 1 reply; 13+ messages in thread
From: Jerin Jacob @ 2023-06-20  6:56 UTC (permalink / raw)
  To: David Marchand; +Cc: dev

On Tue, Jun 20, 2023 at 2:17 AM David Marchand
<david.marchand@redhat.com> wrote:
>
> Allow disabling of the graph library in builds.

Good to make graph as optional.
I did not check the build, will examples/l3fwd-graph/ skip automatically ?

>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
> +if dpdk_conf.has('RTE_LIB_GRAPH')

Can devtools/test-meson-builds.sh updated to check build with
disabling all optional libs?

> +    test_sources += 'test_graph.c'
> +    fast_tests += [['graph_autotest', true, true]]
> +    fast_tests += [['node_list_dump', true, true]]
> +    test_sources += 'test_graph_perf.c'
> +    perf_test_names += 'graph_perf_autotest'

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] lib: make graph optional
  2023-06-20  6:56   ` Jerin Jacob
@ 2023-06-20  7:09     ` David Marchand
  0 siblings, 0 replies; 13+ messages in thread
From: David Marchand @ 2023-06-20  7:09 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dev

On Tue, Jun 20, 2023 at 8:56 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>
> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
> <david.marchand@redhat.com> wrote:
> >
> > Allow disabling of the graph library in builds.
>
> Good to make graph as optional.
> I did not check the build, will examples/l3fwd-graph/ skip automatically ?

Yes.
Each example exposes its required dependencies.
examples/meson.build will skip any example with unmet requirements
unless the example was explicitly set in the -Dexamples= list of
examples to build.

See:
https://git.dpdk.org/dpdk/tree/examples/meson.build#n105

https://git.dpdk.org/dpdk/tree/examples/meson.build#n79
https://git.dpdk.org/dpdk/tree/examples/meson.build#n117


>
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > ---
> > +if dpdk_conf.has('RTE_LIB_GRAPH')
>
> Can devtools/test-meson-builds.sh updated to check build with
> disabling all optional libs?

I already tested this series with our script: we already have a "mini" target.

build build-mini cc skipABI $use_shared -Ddisable_libs=* \
        -Denable_drivers=net/null

...
Message: Skipping example "l2fwd-jobstats"
Library rt found: YES
Message: Missing dependency "graph" for example "l3fwd-graph"
Message: Skipping example "l3fwd-graph"
Message: Missing dependency "power" for example "l3fwd-power"
Message: Skipping example "l3fwd-power"
...


-- 
David Marchand


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] lib: make graph optional
  2023-06-19 20:46 ` [PATCH 2/2] lib: make graph optional David Marchand
  2023-06-20  6:56   ` Jerin Jacob
@ 2023-06-20  8:10   ` Bruce Richardson
  2023-06-20  8:20     ` Jerin Jacob
  1 sibling, 1 reply; 13+ messages in thread
From: Bruce Richardson @ 2023-06-20  8:10 UTC (permalink / raw)
  To: David Marchand; +Cc: dev

On Mon, Jun 19, 2023 at 10:46:50PM +0200, David Marchand wrote:
> Allow disabling of the graph library in builds.
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  app/test/meson.build | 12 +++++++-----
>  lib/meson.build      |  1 +
>  2 files changed, 8 insertions(+), 5 deletions(-)
> 
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] lib: make graph optional
  2023-06-20  8:10   ` Bruce Richardson
@ 2023-06-20  8:20     ` Jerin Jacob
  2023-06-22 17:33       ` Thomas Monjalon
  0 siblings, 1 reply; 13+ messages in thread
From: Jerin Jacob @ 2023-06-20  8:20 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: David Marchand, dev

On Tue, Jun 20, 2023 at 1:40 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> On Mon, Jun 19, 2023 at 10:46:50PM +0200, David Marchand wrote:
> > Allow disabling of the graph library in builds.
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > ---
> >  app/test/meson.build | 12 +++++++-----
> >  lib/meson.build      |  1 +
> >  2 files changed, 8 insertions(+), 5 deletions(-)
> >
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Acked-by: Jerin Jacob <jerinj@marvell.com>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] test: add graph tests
  2023-06-20  6:56   ` David Marchand
@ 2023-06-20 10:32     ` Kevin Traynor
  2023-06-20 11:52       ` David Marchand
  0 siblings, 1 reply; 13+ messages in thread
From: Kevin Traynor @ 2023-06-20 10:32 UTC (permalink / raw)
  To: David Marchand, Jerin Jacob, Luca Boccassi, Xueming(Steven) Li; +Cc: dev

On 20/06/2023 07:56, David Marchand wrote:
> On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>>
>> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
>> <david.marchand@redhat.com> wrote:
>>>
>>> We forgot to add graph unit tests to the CI testsuites.
>>>
>>> Signed-off-by: David Marchand <david.marchand@redhat.com>
>>
>> Could we add Fixes: ?
>> Either way,
>> Acked-by: Jerin Jacob <jerinj@marvell.com>
> 
> Indeed.
> I don't think the graph unit tests and code changed much, so it should
> be ok to backport down to 20.11 and enable these ut in the CI.
> 
> 

Sounds ok to me to add "Fixes:" tag and backport. If they pass, great - 
if they don't, the graph maintainers would need to spend time updating 
the tests etc or we could just drop the patch.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] test: add graph tests
  2023-06-20 10:32     ` Kevin Traynor
@ 2023-06-20 11:52       ` David Marchand
  2023-06-20 13:06         ` Kevin Traynor
  0 siblings, 1 reply; 13+ messages in thread
From: David Marchand @ 2023-06-20 11:52 UTC (permalink / raw)
  To: Kevin Traynor; +Cc: Jerin Jacob, Luca Boccassi, Xueming(Steven) Li, dev

On Tue, Jun 20, 2023 at 12:32 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>
> On 20/06/2023 07:56, David Marchand wrote:
> > On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
> >>
> >> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
> >> <david.marchand@redhat.com> wrote:
> >>>
> >>> We forgot to add graph unit tests to the CI testsuites.
> >>>
> >>> Signed-off-by: David Marchand <david.marchand@redhat.com>
> >>
> >> Could we add Fixes: ?
> >> Either way,
> >> Acked-by: Jerin Jacob <jerinj@marvell.com>
> >
> > Indeed.
> > I don't think the graph unit tests and code changed much, so it should
> > be ok to backport down to 20.11 and enable these ut in the CI.
> >
> >
>
> Sounds ok to me to add "Fixes:" tag and backport. If they pass, great -
> if they don't, the graph maintainers would need to spend time updating
> the tests etc or we could just drop the patch.

Modulo some easy to fix conflict when backporting, the graph tests pass fine:
- 20.11:
2023-06-20T11:30:44.7171265Z 87/96 DPDK:fast-tests / graph_autotest
    OK       0.13 s
2023-06-20T11:30:44.7171724Z 88/96 DPDK:fast-tests / node_list_dump
    OK       0.13 s

- 21.11:
2023-06-20T11:32:37.2132951Z  90/101 DPDK:fast-tests / graph_autotest
      OK       0.17 s
2023-06-20T11:32:37.2133397Z  91/101 DPDK:fast-tests / node_list_dump
      OK       0.17 s

- 22.11:
2023-06-20T11:50:48.2519983Z  92/106 DPDK:fast-tests / graph_autotest
      OK       0.17 s
2023-06-20T11:50:48.2520344Z  93/106 DPDK:fast-tests / node_list_dump
      OK       0.17 s


-- 
David Marchand


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] test: add graph tests
  2023-06-20 11:52       ` David Marchand
@ 2023-06-20 13:06         ` Kevin Traynor
  0 siblings, 0 replies; 13+ messages in thread
From: Kevin Traynor @ 2023-06-20 13:06 UTC (permalink / raw)
  To: David Marchand; +Cc: Jerin Jacob, Luca Boccassi, Xueming(Steven) Li, dev

On 20/06/2023 12:52, David Marchand wrote:
> On Tue, Jun 20, 2023 at 12:32 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>>
>> On 20/06/2023 07:56, David Marchand wrote:
>>> On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>>>>
>>>> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
>>>> <david.marchand@redhat.com> wrote:
>>>>>
>>>>> We forgot to add graph unit tests to the CI testsuites.
>>>>>
>>>>> Signed-off-by: David Marchand <david.marchand@redhat.com>
>>>>
>>>> Could we add Fixes: ?
>>>> Either way,
>>>> Acked-by: Jerin Jacob <jerinj@marvell.com>
>>>
>>> Indeed.
>>> I don't think the graph unit tests and code changed much, so it should
>>> be ok to backport down to 20.11 and enable these ut in the CI.
>>>
>>>
>>
>> Sounds ok to me to add "Fixes:" tag and backport. If they pass, great -
>> if they don't, the graph maintainers would need to spend time updating
>> the tests etc or we could just drop the patch.
> 
> Modulo some easy to fix conflict when backporting, the graph tests pass fine:
> - 20.11:
> 2023-06-20T11:30:44.7171265Z 87/96 DPDK:fast-tests / graph_autotest
>      OK       0.13 s
> 2023-06-20T11:30:44.7171724Z 88/96 DPDK:fast-tests / node_list_dump
>      OK       0.13 s
> 
> - 21.11:
> 2023-06-20T11:32:37.2132951Z  90/101 DPDK:fast-tests / graph_autotest
>        OK       0.17 s
> 2023-06-20T11:32:37.2133397Z  91/101 DPDK:fast-tests / node_list_dump
>        OK       0.17 s
> 
> - 22.11:
> 2023-06-20T11:50:48.2519983Z  92/106 DPDK:fast-tests / graph_autotest
>        OK       0.17 s
> 2023-06-20T11:50:48.2520344Z  93/106 DPDK:fast-tests / node_list_dump
>        OK       0.17 s
> 
> 

Thanks David. In that case lgtm.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] lib: make graph optional
  2023-06-20  8:20     ` Jerin Jacob
@ 2023-06-22 17:33       ` Thomas Monjalon
  0 siblings, 0 replies; 13+ messages in thread
From: Thomas Monjalon @ 2023-06-22 17:33 UTC (permalink / raw)
  To: David Marchand; +Cc: Bruce Richardson, dev, Jerin Jacob

20/06/2023 10:20, Jerin Jacob:
> On Tue, Jun 20, 2023 at 1:40 PM Bruce Richardson
> <bruce.richardson@intel.com> wrote:
> >
> > On Mon, Jun 19, 2023 at 10:46:50PM +0200, David Marchand wrote:
> > > Allow disabling of the graph library in builds.
> > >
> > > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > > ---
> > >  app/test/meson.build | 12 +++++++-----
> > >  lib/meson.build      |  1 +
> > >  2 files changed, 8 insertions(+), 5 deletions(-)
> > >
> > Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> 
> Acked-by: Jerin Jacob <jerinj@marvell.com>

Series applied, thanks.




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-06-22 17:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 20:46 [PATCH 1/2] test: add graph tests David Marchand
2023-06-19 20:46 ` [PATCH 2/2] lib: make graph optional David Marchand
2023-06-20  6:56   ` Jerin Jacob
2023-06-20  7:09     ` David Marchand
2023-06-20  8:10   ` Bruce Richardson
2023-06-20  8:20     ` Jerin Jacob
2023-06-22 17:33       ` Thomas Monjalon
2023-06-20  6:45 ` [PATCH 1/2] test: add graph tests David Marchand
2023-06-20  6:50 ` Jerin Jacob
2023-06-20  6:56   ` David Marchand
2023-06-20 10:32     ` Kevin Traynor
2023-06-20 11:52       ` David Marchand
2023-06-20 13:06         ` Kevin Traynor

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).