DPDK patches and discussions
 help / color / mirror / Atom feed
From: Akhil Goyal <gakhil@marvell.com>
To: "Bruce Richardson" <bruce.richardson@intel.com>,
	"Morten Brørup" <mb@smartsharesystems.com>
Cc: David Marchand <david.marchand@redhat.com>,
	Anatoly Burakov <anatoly.burakov@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	Reshma Pattan <reshma.pattan@intel.com>,
	Stephen Hemminger <stephen@networkplumber.org>,
	Sunil Kumar Kori <skori@marvell.com>,
	Rakesh Kudurumalla <rkudurumalla@marvell.com>,
	Brian Dooley <brian.dooley@intel.com>,
	Vladimir Medvedkin <vladimir.medvedkin@intel.com>,
	Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>
Subject: RE: [EXTERNAL] Re: [PATCH v6 7/8] app: reduce app dependencies
Date: Wed, 19 Feb 2025 10:50:52 +0000	[thread overview]
Message-ID: <CO6PR18MB44841FB45C9C2C91847757A8D8C52@CO6PR18MB4484.namprd18.prod.outlook.com> (raw)
In-Reply-To: <Z7Wwr-o416zQ3CSa@bricha3-mobl1.ger.corp.intel.com>

> On Wed, Feb 19, 2025 at 11:18:46AM +0100, Morten Brørup wrote:
> > > From: Akhil Goyal [mailto:gakhil@marvell.com]
> > > Sent: Wednesday, 19 February 2025 09.16
> > >
> > > Hi David,
> > > > Hello,
> > > >
> > > > Cc: Akhil.
> > > >
> > > > On Tue, Feb 18, 2025 at 12:16 PM Anatoly Burakov
> > > > <anatoly.burakov@intel.com> wrote:
> > > > > diff --git a/app/test-crypto-perf/meson.build b/app/test-crypto-
> > > > perf/meson.build
> > > > > index fb48d9ec29..f056431bf4 100644
> > > > > --- a/app/test-crypto-perf/meson.build
> > > > > +++ b/app/test-crypto-perf/meson.build
> > > > > @@ -19,7 +19,7 @@ sources = files(
> > > > >          'cperf_test_verify.c',
> > > > >          'main.c',
> > > > >  )
> > > > > -deps += ['cryptodev', 'net', 'security']
> > > > > +deps += ['cryptodev']
> > > > >  optional_deps += 'crypto_scheduler'
> > > > >
> > > > >  cflags += no_wvla_cflag
> > > >
> > > > - This app does seem to rely on lib/net.
> > > >
> > > > [989/1266] Compiling C object
> > > > app/dpdk-test-crypto-perf.p/test-crypto-perf_cperf_ops.c.o
> > > > FAILED: app/dpdk-test-crypto-perf.p/test-crypto-perf_cperf_ops.c.o
> > > > ccache aarch64-linux-gnu-gcc -Iapp/dpdk-test-crypto-perf.p -Iapp
> > > > -I../app -Ilib/cryptodev -I../lib/cryptodev -Ilib/mbuf -I../lib/mbuf
> > > > -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -I. -I..
> > > > -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include
> > > > -Ilib/eal/linux/include -I../lib/eal/linux/include
> > > > -Ilib/eal/arm/include -I../lib/eal/arm/include -I../kernel/linux
> > > > -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal
> > > > -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics
> > > > -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/rcu
> > > > -I../lib/rcu -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64
> > > > -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -include
> > > rte_config.h
> > > > -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral
> > > > -Wformat-security -Wmissing-declarations -Wmissing-prototypes
> > > > -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-
> > > compare
> > > > -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned
> > > > -Wno-missing-field-initializers -D_GNU_SOURCE -mcpu=cortex-a72
> > > > -DALLOW_EXPERIMENTAL_API -Wno-vla -MD -MQ
> > > > app/dpdk-test-crypto-perf.p/test-crypto-perf_cperf_ops.c.o -MF
> > > > app/dpdk-test-crypto-perf.p/test-crypto-perf_cperf_ops.c.o.d -o
> > > > app/dpdk-test-crypto-perf.p/test-crypto-perf_cperf_ops.c.o -c
> > > > ../app/test-crypto-perf/cperf_ops.c
> > > > ../app/test-crypto-perf/cperf_ops.c:6:10: fatal error: rte_ether.h:
> > > No
> > > > such file or directory
> > > >     6 | #include <rte_ether.h>
> > > >       |          ^~~~~~~~~~~~~
> > > > compilation terminated.
> > > > ninja: build stopped: subcommand failed.
> > > >
> > > >
> > > > - Btw, rte_security.h is included in app/test-crypto-
> > > perf/cperf_ops.c.
> > > > However, given there is a #ifdef, I suspect the intention was to have
> > > > lib/security as an optional dep.
> > >
> > > Yes it was initially meant to be optional when rte_security was
> > > experimental.
> > > But now, it is kind of mandatory library. I am not sure if it will
> > > compile without rte_security.
> > > We can remove the ifdefs over rte_security and
> > > we should not remove security dependency from crypto-perf.
> > >
> > > -Akhil
> >
> > Not sure what you mean here, but:
> > The "security" library is optional, not always enabled, when building DPDK.
> > Ref: /source/lib/meson.build
> >
> > Not all applications use the security library (or stuff that depends on it), so don't
> make it mandatory!
> >
> I believe he's just referring to making it a mandatory dependency for this
> app, not for all of DPDK. (Or so I hope). Currently it's an optional
> dependency of the app.
>
I was talking about all applications which depend on rte_security.

Previously all applications which were supposed to use rte_security,
we made sure that applications also get compiled without rte_security.
(by skipping the rte_security related cases using ifdefs)
But now, that bifurcation is not maintained and 
we can remove ifdefs from all applications which have rte_security dependency.

  reply	other threads:[~2025-02-19 10:56 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30 14:55 [PATCH] build: output a dependency log in build directory Bruce Richardson
2024-07-31  9:07 ` Konstantin Ananyev
2024-07-31 10:17 ` Ferruh Yigit
2024-07-31 10:27   ` Bruce Richardson
2024-08-02 12:44 ` [PATCH v2 0/7] record and rework component dependencies Bruce Richardson
2024-08-02 12:44   ` [PATCH v2 1/7] build: output a dependency log in build directory Bruce Richardson
2024-09-02 14:34     ` Burakov, Anatoly
2024-09-03  8:31       ` Bruce Richardson
2024-08-02 12:44   ` [PATCH v2 2/7] devtools: add script to flag unneeded dependencies Bruce Richardson
2024-08-02 12:44   ` [PATCH v2 3/7] build: remove kvargs from driver class dependencies Bruce Richardson
2024-08-02 12:44   ` [PATCH v2 4/7] build: reduce library dependencies Bruce Richardson
2024-08-02 12:44   ` [PATCH v2 5/7] build: reduce driver dependencies Bruce Richardson
2024-08-02 12:44   ` [PATCH v2 6/7] build: reduce app dependencies Bruce Richardson
2024-08-02 12:44   ` [PATCH v2 7/7] devtools: add script to generate DPDK dependency graphs Bruce Richardson
2024-08-02 13:29   ` [PATCH v2 0/7] record and rework component dependencies Morten Brørup
2024-08-02 15:05   ` Patrick Robb
2024-08-02 15:11     ` Bruce Richardson
2024-08-02 17:18   ` Ferruh Yigit
2024-08-06  8:35     ` Bruce Richardson
2024-09-04 15:08 ` [PATCH v3 0/8] " Anatoly Burakov
2024-09-04 15:08   ` [PATCH v3 1/8] build: split dependencies into mandatory and optional Anatoly Burakov
2024-09-06 14:51     ` Bruce Richardson
2024-09-09  8:41       ` Burakov, Anatoly
2024-09-09  9:01         ` Bruce Richardson
2024-09-04 15:08   ` [PATCH v3 2/8] build: output a dependency log in build directory Anatoly Burakov
2024-09-04 15:08   ` [PATCH v3 3/8] devtools: add script to flag unneeded dependencies Anatoly Burakov
2024-09-04 15:08   ` [PATCH v3 4/8] build: remove kvargs from driver class dependencies Anatoly Burakov
2024-09-04 15:08   ` [PATCH v3 5/8] build: reduce library dependencies Anatoly Burakov
2024-09-04 15:08   ` [PATCH v3 6/8] build: reduce driver dependencies Anatoly Burakov
2024-09-04 15:08   ` [PATCH v3 7/8] build: reduce app dependencies Anatoly Burakov
2024-09-04 15:08   ` [PATCH v3 8/8] devtools: add script to generate DPDK dependency graphs Anatoly Burakov
2024-09-05  6:05   ` [PATCH v3 0/8] record and rework component dependencies Morten Brørup
2024-11-26 14:39   ` [PATCH v4 0/8] Record " Anatoly Burakov
2024-11-26 14:39     ` [PATCH v4 1/8] build: split dependencies into mandatory and optional Anatoly Burakov
2024-11-26 14:39     ` [PATCH v4 2/8] build: output a dependency log in build directory Anatoly Burakov
2024-11-26 14:39     ` [PATCH v4 3/8] devtools: add script to flag unneeded dependencies Anatoly Burakov
2024-11-26 14:39     ` [PATCH v4 4/8] build: remove kvargs from driver class dependencies Anatoly Burakov
2024-11-26 14:39     ` [PATCH v4 5/8] build: reduce library dependencies Anatoly Burakov
2024-11-26 14:39     ` [PATCH v4 6/8] build: reduce driver dependencies Anatoly Burakov
2024-11-27  2:17       ` Xu, Rosen
2024-11-26 14:39     ` [PATCH v4 7/8] build: reduce app dependencies Anatoly Burakov
2024-11-26 14:39     ` [PATCH v4 8/8] devtools: add script to generate DPDK dependency graphs Anatoly Burakov
2024-11-26 15:11     ` [PATCH v4 0/8] Record and rework component dependencies Burakov, Anatoly
2024-11-27 14:56   ` [PATCH v5 " Anatoly Burakov
2024-11-27 14:56     ` [PATCH v5 1/8] build: introduce optional internal dependencies Anatoly Burakov
2024-11-27 14:56     ` [PATCH v5 2/8] build: output a dependency log in build directory Anatoly Burakov
2024-11-27 14:56     ` [PATCH v5 3/8] devtools: add script to flag unneeded dependencies Anatoly Burakov
2024-11-27 14:56     ` [PATCH v5 4/8] build: remove kvargs from driver class dependencies Anatoly Burakov
2024-11-27 14:56     ` [PATCH v5 5/8] build: reduce library dependencies Anatoly Burakov
2024-11-27 14:56     ` [PATCH v5 6/8] build: reduce driver dependencies Anatoly Burakov
2024-11-27 16:19       ` Burakov, Anatoly
2024-12-16 16:06         ` David Marchand
2024-11-27 14:56     ` [PATCH v5 7/8] build: reduce app dependencies Anatoly Burakov
2024-11-27 14:56     ` [PATCH v5 8/8] devtools: add script to generate DPDK dependency graphs Anatoly Burakov
2025-02-18 11:15   ` [PATCH v6 0/8] Record and rework component dependencies Anatoly Burakov
2025-02-18 11:15     ` [PATCH v6 1/8] build: introduce optional internal dependencies Anatoly Burakov
2025-02-18 11:28       ` Bruce Richardson
2025-02-18 11:15     ` [PATCH v6 2/8] build: output a dependency log in build directory Anatoly Burakov
2025-02-18 11:15     ` [PATCH v6 3/8] devtools: add script to flag unneeded dependencies Anatoly Burakov
2025-02-18 11:15     ` [PATCH v6 4/8] drivers: remove kvargs from class dependencies Anatoly Burakov
2025-02-18 11:15     ` [PATCH v6 5/8] lib: reduce library dependencies Anatoly Burakov
2025-02-18 11:15     ` [PATCH v6 6/8] drivers: reduce driver dependencies Anatoly Burakov
2025-02-18 11:15     ` [PATCH v6 7/8] app: reduce app dependencies Anatoly Burakov
2025-02-19  8:05       ` David Marchand
2025-02-19  8:16         ` [EXTERNAL] " Akhil Goyal
2025-02-19 10:18           ` Morten Brørup
2025-02-19 10:21             ` Bruce Richardson
2025-02-19 10:50               ` Akhil Goyal [this message]
2025-02-18 11:15     ` [PATCH v6 8/8] devtools: add script to generate DPDK dependency graphs Anatoly Burakov
2025-02-19 10:57   ` [PATCH v7 0/8] Record and rework component dependencies Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 1/8] build: introduce optional internal dependencies Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 2/8] build: output a dependency log in build directory Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 3/8] devtools: add script to flag unneeded dependencies Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 4/8] drivers: remove kvargs from class dependencies Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 5/8] lib: reduce library dependencies Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 6/8] drivers: reduce driver dependencies Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 7/8] app: reduce app dependencies Anatoly Burakov
2025-02-19 10:57     ` [PATCH v7 8/8] devtools: add script to generate DPDK dependency graphs Anatoly Burakov

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=CO6PR18MB44841FB45C9C2C91847757A8D8C52@CO6PR18MB4484.namprd18.prod.outlook.com \
    --to=gakhil@marvell.com \
    --cc=anatoly.burakov@intel.com \
    --cc=brian.dooley@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=konstantin.v.ananyev@yandex.ru \
    --cc=mb@smartsharesystems.com \
    --cc=reshma.pattan@intel.com \
    --cc=rkudurumalla@marvell.com \
    --cc=skori@marvell.com \
    --cc=stephen@networkplumber.org \
    --cc=vladimir.medvedkin@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).