All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: vjardin@free.fr
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>,
	Ioana Ciornei <ioana.ciornei@nxp.com>,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/2] dpaa2-eth: mark DPNIs without a DPMAC as virtual devlink ports
Date: Thu, 1 Oct 2026 13:54:17 +0100	[thread overview]
Message-ID: <20261001125417.GE13925@horms.kernel.org> (raw)
In-Reply-To: <20260928-for-upstream-dpaa2_ports-v2-2-1cda148530bf@free.fr>

On Mon, Sep 28, 2026 at 01:22:46PM +0200, Vincent Jardin via B4 Relay wrote:
> From: Vincent Jardin <vjardin@free.fr>
> 
> 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. Until now, such a DPNI was still registered as a physical
> devlink port with number 0, so userspace saw a physical port that does
> not exist.
> 
> Register these DPNIs as virtual devlink ports instead. A virtual port
> has no phys_port_name, so only the DPNIs that serve a DPMAC at probe
> time report one, "p<dpmac id>", and those names do not collide.
> 
> Signed-off-by: Vincent Jardin <vjardin@free.fr>

Reviewed-by: Simon Horman <horms@kernel.org>


  reply	other threads:[~2026-10-01 12:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 11:22 [PATCH net-next v2 0/2] dpaa2-eth: devlink port number from the DPMAC Vincent Jardin via B4 Relay
2026-09-28 11:22 ` Vincent Jardin
2026-09-28 11:22 ` [PATCH net-next v2 1/2] dpaa2-eth: use the DPMAC id as the devlink physical port number Vincent Jardin via B4 Relay
2026-09-28 11:22   ` Vincent Jardin
2026-10-01 12:53   ` Simon Horman
2026-09-28 11:22 ` [PATCH net-next v2 2/2] dpaa2-eth: mark DPNIs without a DPMAC as virtual devlink ports Vincent Jardin via B4 Relay
2026-09-28 11:22   ` Vincent Jardin
2026-10-01 12:54   ` Simon Horman [this message]
2026-10-02  0:20 ` [PATCH net-next v2 0/2] dpaa2-eth: devlink port number from the DPMAC patchwork-bot+netdevbpf

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=20261001125417.GE13925@horms.kernel.org \
    --to=horms@kernel.org \
    --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=vjardin@free.fr \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.