public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Cosmin Ratiu <cratiu@nvidia.com>
To: "sd@queasysnail.net" <sd@queasysnail.net>
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>,
	Dragos Tatulea <dtatulea@nvidia.com>,
	"sdf@fomichev.me" <sdf@fomichev.me>,
	"shuah@kernel.org" <shuah@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"horms@kernel.org" <horms@kernel.org>,
	"edumazet@google.com" <edumazet@google.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net v6 3/4] selftests: Add MACsec VLAN propagation traffic test
Date: Thu, 2 Apr 2026 14:18:51 +0000	[thread overview]
Message-ID: <aa1af947f32305ef08aea7f9ebfb9ad5e8eb39dd.camel@nvidia.com> (raw)
In-Reply-To: <ac5U3LFm2pOV3vWM@krikkit>

On Thu, 2026-04-02 at 13:37 +0200, Sabrina Dubroca wrote:
> 2026-03-30, 16:01:29 +0300, Cosmin Ratiu wrote:
> > +def _get_mac(ifname, host=None):
> > +    """Gets MAC address of an interface."""
> > +    dev = ip(f"-d link show dev {ifname}", json=True, host=host)
> 
> nit: MAC address doesn't need '-d'

Will do.

> 
> I would have used fixed SCI on both ends to avoid this mess with the
> local/remote MAC address, but it's ok as you wrote it.

I guess it would make the test slightly simpler but it would no longer
exercise the manual rx port address creation. I think the MAC stuff is
a small cost to pay for a little extra coverage.


> > +    return dev[0]["address"]
> 
> [...]
> > +def _check_nsim_vid(cfg, vid, expected) -> None:
> > +    """Checks if a VLAN is present. Only works on netdevsim."""
> > +
> > +    nsim = cfg.get_local_nsim_dev()
> > +    if not nsim:
> > +        return
> > +
> > +    vlan_path = nsim.nsims[0].dfs_dir + "vlan"
> 
> nit: os.path.join for consistency with other users

Will do.

Cosmin.

  reply	other threads:[~2026-04-02 14:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-30 13:01 [PATCH net v6 0/4] macsec: Add support for VLAN filtering in offload mode Cosmin Ratiu
2026-03-30 13:01 ` [PATCH net v6 1/4] selftests: Migrate nsim-only MACsec tests to Python Cosmin Ratiu
2026-04-02 10:03   ` Sabrina Dubroca
2026-04-02 11:51     ` Cosmin Ratiu
2026-03-30 13:01 ` [PATCH net v6 2/4] nsim: Add support for VLAN filters Cosmin Ratiu
2026-04-02 10:09   ` Sabrina Dubroca
2026-03-30 13:01 ` [PATCH net v6 3/4] selftests: Add MACsec VLAN propagation traffic test Cosmin Ratiu
2026-04-02 11:37   ` Sabrina Dubroca
2026-04-02 14:18     ` Cosmin Ratiu [this message]
2026-03-30 13:01 ` [PATCH net v6 4/4] macsec: Support VLAN-filtering lower devices Cosmin Ratiu
2026-04-02 14:48   ` Sabrina Dubroca
2026-04-02  2:54 ` [PATCH net v6 0/4] macsec: Add support for VLAN filtering in offload mode Jakub Kicinski

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=aa1af947f32305ef08aea7f9ebfb9ad5e8eb39dd.camel@nvidia.com \
    --to=cratiu@nvidia.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dtatulea@nvidia.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sd@queasysnail.net \
    --cc=sdf@fomichev.me \
    --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