DPDK patches and discussions
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Maxime Leroy <maxime@leroys.fr>,
	Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org, hemant.agrawal@nxp.com,
	 Sachin Saxena <sachin.saxena@nxp.com>,
	Gagandeep Singh <g.singh@nxp.com>,
	 Thomas Monjalon <thomas@monjalon.net>
Subject: Re: [PATCH v2 1/5] crypto/dpaa2_sec: remove crypto device in bus device
Date: Mon, 17 Nov 2025 09:58:57 +0100	[thread overview]
Message-ID: <CAJFAV8yqgU43xHTn_-Wo0FeSjbBHoPHP7yCbz=ju63np9PxO6A@mail.gmail.com> (raw)
In-Reply-To: <CAHHRULXYKbmYT7tY4Qino9dhZccZwBoQYJusjDNJkOi6e62NHw@mail.gmail.com>

Hello,

On Mon, 17 Nov 2025 at 09:36, Maxime Leroy <maxime@leroys.fr> wrote:
> > @@ -4526,10 +4524,14 @@ cryptodev_dpaa2_sec_probe(struct rte_dpaa2_driver *dpaa2_drv __rte_unused,
> >  static int
> >  cryptodev_dpaa2_sec_remove(struct rte_dpaa2_device *dpaa2_dev)
> >  {
> > +       char cryptodev_name[RTE_CRYPTODEV_NAME_MAX_LEN];
> >         struct rte_cryptodev *cryptodev;
> >         int ret;
> >
> > -       cryptodev = dpaa2_dev->cryptodev;
> > +       snprintf(cryptodev_name, sizeof(cryptodev_name), "dpsec-%d",
> > +                       dpaa2_dev->object_id);
> > +
> > +       cryptodev = rte_cryptodev_pmd_get_named_dev(cryptodev_name);
> >         if (cryptodev == NULL)
> >                 return -ENODEV;
> >
> > --
> > 2.51.0
> >
> Should we add a function to generate the cryptodev name instead of
> duplicating the code, similar to how it’s done for PCI devices (i.e.,
> rte_pci_device_name)?

I am not sure I get the parallel..
rte_pci_device_name is a bus level name, I don't see how we could
define a fslmc bus level helper that would help here.
Ah, you mean adding a helper internal to this cryptodev driver?

I can respin this today, but after this, I'll be offline for the rest
of the week (ovscon 2025).

Btw, this series is a cleanup (those drivers have been like this for a
long time), and it can be deferred to next release if we are too short
on time.
On the other hand, the fixes from
https://patchwork.dpdk.org/project/dpdk/list/?series=36702 seem valid
for 25.11.0 (or at least backport material for 25.11.1).


-- 
David Marchand


  reply	other threads:[~2025-11-17  8:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-08 15:32 [PATCH 0/5] Cleanup rte_dpaa2_device David Marchand
2025-11-08 15:32 ` [PATCH 1/5] crypto/dpaa2_sec: remove crypto device in bus device David Marchand
2025-11-08 15:32 ` [PATCH 2/5] dma/dpaa2: remove DMA " David Marchand
2025-11-08 15:32 ` [PATCH 3/5] net/dpaa2: remove dead code in loopback mode David Marchand
2025-11-08 15:32 ` [PATCH 4/5] net/dpaa2: remove ethdev device in bus device David Marchand
2025-11-12  8:44   ` Maxime Leroy
2025-11-12  8:56     ` David Marchand
2025-11-12  9:04       ` David Marchand
2025-11-08 15:32 ` [PATCH 5/5] bus/fslmc: remove raw " David Marchand
2025-11-12  7:35 ` [PATCH 0/5] Cleanup rte_dpaa2_device Hemant Agrawal
2025-11-12  9:10 ` [PATCH v2 " David Marchand
2025-11-12  9:10   ` [PATCH v2 1/5] crypto/dpaa2_sec: remove crypto device in bus device David Marchand
2025-11-17  8:35     ` Maxime Leroy
2025-11-17  8:58       ` David Marchand [this message]
2025-11-17  9:28         ` Maxime Leroy
2025-11-12  9:10   ` [PATCH v2 2/5] dma/dpaa2: remove DMA " David Marchand
2025-11-12  9:10   ` [PATCH v2 3/5] net/dpaa2: remove dead code in loopback mode David Marchand
2025-11-12  9:10   ` [PATCH v2 4/5] net/dpaa2: remove ethdev device in bus device David Marchand
2025-11-13  9:15     ` Hemant Agrawal
2025-11-12  9:10   ` [PATCH v2 5/5] bus/fslmc: remove raw " David Marchand
2025-11-13  9:16   ` [PATCH v2 0/5] Cleanup rte_dpaa2_device Hemant Agrawal

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='CAJFAV8yqgU43xHTn_-Wo0FeSjbBHoPHP7yCbz=ju63np9PxO6A@mail.gmail.com' \
    --to=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=g.singh@nxp.com \
    --cc=hemant.agrawal@nxp.com \
    --cc=maxime@leroys.fr \
    --cc=sachin.saxena@nxp.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /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).