From: Vincent Jardin <vjardin@free.fr>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 2/2] dpaa2-eth: DPNIs without a DPMAC should be virtual devlink ports
Date: Mon, 28 Sep 2026 13:35:41 +0200 [thread overview]
Message-ID: <arpRDebOwAe08pc9@L30177.local> (raw)
In-Reply-To: <hh6bjsyoe4hidiiyl3bt6tsmizfpf5p4h3gpbflcnsakcpgwjr@2pi6r22dpor2>
Hi Ioana,
> > A DPNI whose endpoint is not a DPMAC has no physical connector: it
> > may have no endpoint at all, or be connected to another DPNI or to a
> > DPSW port. It is still registered as a physical devlink port, number 0,
> > so userspace sees a physical port that does not exist.
>
> Reword this so that it's clear that you are describing the state before
> the patch.
Done, see v2
> > A virtual port has no phys_port_name, so only the DPNIs that serve a
> > DPMAC report one, and "p<dpmac id>" never collides.
>
> Reword this as well and mention directly what you are changing.
Done,
>
> I would also suggest a change in the subject title:
> dpaa2-eth: mark DPNIs without a DPMAC as virtual devlink ports
OK, thanks for the suggestion
> > void dpaa2_eth_dl_port_check(struct dpaa2_eth_priv *priv)
> > {
> > - u32 registered = priv->devlink_port.attrs.phys.port_number;
> > + const struct devlink_port_attrs *attrs = &priv->devlink_port.attrs;
> > u32 current_number = dpaa2_eth_dl_port_number(priv);
> > + u32 registered = 0;
>
> Move these changes to patch 1/2.
ok, done
Thanks for the comments,
Vincent
next prev parent reply other threads:[~2026-09-28 11:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 12:57 [PATCH net-next 0/2] dpaa2-eth: devlink port number from the DPMAC Vincent Jardin via B4 Relay
2026-09-23 12:58 ` [PATCH net-next 1/2] dpaa2-eth: use the DPMAC id as the devlink physical port number Vincent Jardin via B4 Relay
2026-09-27 13:17 ` netdev-bot+sashiko
2026-09-28 11:27 ` Vincent Jardin
2026-09-28 9:12 ` Ioana Ciornei
2026-09-28 11:29 ` Vincent Jardin
2026-09-23 12:58 ` [PATCH net-next 2/2] dpaa2-eth: DPNIs without a DPMAC should be virtual devlink ports Vincent Jardin via B4 Relay
2026-09-27 13:17 ` netdev-bot+sashiko
2026-09-28 11:33 ` Vincent Jardin
2026-09-28 9:18 ` Ioana Ciornei
2026-09-28 11:35 ` Vincent Jardin [this message]
2026-09-23 15:09 ` [PATCH net-next 0/2] dpaa2-eth: devlink port number from the DPMAC Ioana Ciornei
2026-09-24 11:58 ` Vincent Jardin
2026-09-28 12:31 ` Ioana Ciornei
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=arpRDebOwAe08pc9@L30177.local \
--to=vjardin@free.fr \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=ioana.ciornei@nxp.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.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
all inboxes | Powered by JetHome®