Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Cosmin Ratiu <cratiu@nvidia.com>
To: "kuba@kernel.org" <kuba@kernel.org>
Cc: "andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"linux-kselftest@vger.kernel.org"
	<linux-kselftest@vger.kernel.org>,
	"shuah@kernel.org" <shuah@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"edumazet@google.com" <edumazet@google.com>,
	Carolina Jubran <cjubran@nvidia.com>
Subject: Re: [PATCH net-next 1/2] selftests: drv-net: psp: Use first device when multiple are present
Date: Wed, 7 Jan 2026 11:44:17 +0000	[thread overview]
Message-ID: <8fe057c5095176f7d188c8c5633b7b7b1a80e22f.camel@nvidia.com> (raw)
In-Reply-To: <20260105174442.055a67c5@kernel.org>

On Mon, 2026-01-05 at 17:44 -0800, Jakub Kicinski wrote:
> On Mon, 5 Jan 2026 12:04:23 +0200 Cosmin Ratiu wrote:
> > The PSP responder fails when multiple devices are detected. There's
> > an option to select the device id to use (-d) but that's currently
> > not
> > used from the PSP self test.
> > 
> > Change the default behavior of psp_responder to pick the first
> > device instead of giving up altogether.
> 
> We know what ifindex we expect to run against (cfg.remote_ifname)
> we can resolve which PSP device it belongs to either in the C code
> or in the Python script.

I see now that the psp dev dump command exports the netdev ifindex
alongside the psp devid. psp_responder could match that against a
command line argument (replacing -d). I'll concoct something and send
it as next version.

Cosmin.

  reply	other threads:[~2026-01-07 11:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-05 10:04 [PATCH net-next 0/2] PSP self test improvements Cosmin Ratiu
2026-01-05 10:04 ` [PATCH net-next 1/2] selftests: drv-net: psp: Use first device when multiple are present Cosmin Ratiu
2026-01-06  1:44   ` Jakub Kicinski
2026-01-07 11:44     ` Cosmin Ratiu [this message]
2026-01-05 10:04 ` [PATCH net-next 2/2] selftests: drv-net: psp: Don't fail psp_responder when no PSP devs found Cosmin Ratiu
2026-01-06  1:52   ` Jakub Kicinski
2026-01-07 11:47     ` Cosmin Ratiu

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=8fe057c5095176f7d188c8c5633b7b7b1a80e22f.camel@nvidia.com \
    --to=cratiu@nvidia.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=cjubran@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    /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