DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: David Marchand <david.marchand@redhat.com>
Cc: <dev@dpdk.org>, <stable@dpdk.org>, Jingjing Wu <jingjing.wu@intel.com>
Subject: Re: [PATCH v2] net/iavf: preserve MAC address with i40e PF Linux driver
Date: Tue, 15 Oct 2024 18:03:04 +0100	[thread overview]
Message-ID: <Zw6gSKOAlcmx5p6R@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <Zvv1vBGLe0Lz62BU@bricha3-mobl1.ger.corp.intel.com>

On Tue, Oct 01, 2024 at 02:14:36PM +0100, Bruce Richardson wrote:
> On Tue, Oct 01, 2024 at 11:12:54AM +0200, David Marchand wrote:
> > Following two upstream Linux kernel changes (see links), the mac address
> > of a iavf port, serviced by a i40e PF driver, is lost when the DPDK iavf
> > driver probes the port again (which may be triggered at any point of a
> > DPDK application life, like when a reset event is triggered by the PF).
> > 
> > A first change results in the mac address of the VF port being reset to 0
> > during the VIRTCHNL_OP_GET_VF_RESOURCES query.
> > The i40e PF driver change is pretty obscure but the iavf Linux driver does
> > set VIRTCHNL_VF_OFFLOAD_USO.
> > Announcing such a capability in the DPDK driver does not seem to be an
> > issue, so do the same in DPDK to keep the legacy behavior of a fixed mac.
> > 
> > Then a second change in the kernel results in the VF mac address being
> > cleared when the VF driver remove its default mac address.
> > Removing (unicast or multicast) mac addresses is not done by the kernel VF
> > driver in general.
> > The reason why the DPDK driver behaves like this is undocumented
> > (and lost because the authors are not active anymore).
> > Aligning DPDK behavior to the upstream kernel driver is safer in any
> > case.
> > 
> > Cc: stable@dpdk.org
> > 
> > Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fed0d9f13266
> > Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ceb29474bbbc
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > ---
> 
> Seems reasonable to me.
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-net-intel.

Thanks,
/Bruce

      reply	other threads:[~2024-10-15 17:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-19 12:00 [PATCH] net/iavf: fix mac " David Marchand
2024-10-01  9:12 ` [PATCH v2] net/iavf: preserve MAC " David Marchand
2024-10-01 10:08   ` Bruce Richardson
2024-10-01 13:07     ` David Marchand
2024-10-01 13:14   ` Bruce Richardson
2024-10-15 17:03     ` Bruce Richardson [this message]

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=Zw6gSKOAlcmx5p6R@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=stable@dpdk.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;
as well as URLs for NNTP newsgroup(s).