From: Louis Peens <louis.peens@corigine.com>
To: Simon Horman <horms@kernel.org>
Cc: David Miller <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
James Hershaw <james.hershaw@corigine.com>,
Daniel Basilio <daniel.basilio@corigine.com>,
netdev@vger.kernel.org, stable@vger.kernel.org,
oss-drivers@corigine.com
Subject: Re: [PATCH net 2/3] nfp: flower: prevent re-adding mac index for bonded port
Date: Mon, 5 Feb 2024 16:15:08 +0200 [thread overview]
Message-ID: <ZcDtbBeW5epRpZqR@LouisNoVo> (raw)
In-Reply-To: <20240205133203.GK960600@kernel.org>
On Mon, Feb 05, 2024 at 01:32:03PM +0000, Simon Horman wrote:
> On Fri, Feb 02, 2024 at 01:37:18PM +0200, Louis Peens wrote:
> > From: Daniel de Villiers <daniel.devilliers@corigine.com>
> >
> > When physical ports are reset (either through link failure or manually
> > toggled down and up again) that are slaved to a Linux bond with a tunnel
> > endpoint IP address on the bond device, not all tunnel packets arriving
> > on the bond port are decapped as expected.
> >
> > The bond dev assigns the same MAC address to itself and each of its
> > slaves. When toggling a slave device, the same MAC address is therefore
> > offloaded to the NFP multiple times with different indexes.
> >
> > The issue only occurs when re-adding the shared mac. The
> > nfp_tunnel_add_shared_mac() function has a conditional check early on
> > that checks if a mac entry already exists and if that mac entry is
> > global: (entry && nfp_tunnel_is_mac_idx_global(entry->index)). In the
> > case of a bonded device (For example br-ex), the mac index is obtained,
> > and no new index is assigned.
> >
> > We therefore modify the conditional in nfp_tunnel_add_shared_mac() to
> > check if the port belongs to the LAG along with the existing checks to
> > prevent a new global mac index from being re-assigned to the slave port.
> >
> > Fixes: 20cce8865098 ("nfp: flower: enable MAC address sharing for offloadable devs")
> > CC: stable@vger.kernel.org # 5.1+
> > Signed-off-by: Daniel de Villiers <daniel.devilliers@corigine.com>
> > Signed-off-by: Louis Peens <louis.peens@corigine.com>
>
> Hi Daniel and Louis,
>
> I'd like to encourage you to update the wording of the commit message
> to use more inclusive language; I'd suggest describing the patch
> in terms of members of a LAG.
Thanks Simon, this have not even crossed my mind this time and I feel
bad - I should be more aware. Thanks for politely pointing this out.
This did get merged earlier today as-is unfortunately, I'm not sure if
there is a good way (or if it is pressing enough) to have it retracted.
I will try to be more cognizant of this in the future.
>
> The code-change looks good to me.
>
next prev parent reply other threads:[~2024-02-05 14:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 11:37 [PATCH net 0/3] nfp: a few simple driver fixes Louis Peens
2024-02-02 11:37 ` [PATCH net 1/3] nfp: use correct macro for LengthSelect in BAR config Louis Peens
2024-02-05 13:35 ` Simon Horman
2024-02-05 14:22 ` Louis Peens
2024-02-02 11:37 ` [PATCH net 2/3] nfp: flower: prevent re-adding mac index for bonded port Louis Peens
2024-02-05 13:32 ` Simon Horman
2024-02-05 14:15 ` Louis Peens [this message]
2024-02-05 17:58 ` Simon Horman
2024-02-02 11:37 ` [PATCH net 3/3] nfp: enable NETDEV_XDP_ACT_REDIRECT feature flag Louis Peens
2024-02-05 13:37 ` Simon Horman
2024-02-05 11:20 ` [PATCH net 0/3] nfp: a few simple driver fixes 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=ZcDtbBeW5epRpZqR@LouisNoVo \
--to=louis.peens@corigine.com \
--cc=daniel.basilio@corigine.com \
--cc=davem@davemloft.net \
--cc=horms@kernel.org \
--cc=james.hershaw@corigine.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@corigine.com \
--cc=pabeni@redhat.com \
--cc=stable@vger.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;
as well as URLs for NNTP newsgroup(s).