From: Jakub Kicinski <kuba@kernel.org>
To: Johnathan Browall via B4 Relay
<devnull+johnathan.browall.topgolf.com@kernel.org>
Cc: johnathan.browall@topgolf.com,
"Michael Chan" <michael.chan@broadcom.com>,
"Pavan Chebbi" <pavan.chebbi@broadcom.com>,
netdev@vger.kernel.org, "Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Paolo Abeni" <pabeni@redhat.com>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
"Pontus Hållstedt" <pontus.hallstedt@topgolf.com>
Subject: Re: [PATCH net v3] bnxt_en: avoid redundant RX mask updates in UC overflow state
Date: Sat, 5 Sep 2026 11:31:24 -0700 [thread overview]
Message-ID: <20260905113124.32280c67@kernel.org> (raw)
In-Reply-To: <20260901-bnxt-uc-overflow-v3-1-2ea7c42c013c@topgolf.com>
On Tue, 01 Sep 2026 14:46:47 +0200 Johnathan Browall via B4 Relay wrote:
> Tested with the equivalent patch on 6.12.y on BCM57416: the repeated
> SET_RX_MASK invocations no longer occur and the receive disruption is
> no longer reproducible.
You must test this on the kernel tree you are targeting.
> Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.")
> Cc: stable@vger.kernel.org # needs adjustment for <= 6.18
Please delete these and resend this to net-next, this is an improvement
not a bug fix.
> --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
> +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
> @@ -13791,6 +13791,16 @@ static bool bnxt_uc_list_updated(struct bnxt *bp,
> struct netdev_hw_addr *ha;
> int off = 0;
>
> + /* In the overflow state no secondary L2 filters are programmed
> + * and unicast RX relies on the promiscuous mask, so the list
> + * only needs reprogramming once it fits the available filters
> + * again. Reporting an update here would resend an identical
> + * SET_RX_MASK on every callback, which causes brief RX packet
> + * loss on some chips.
Please trim the slop comments significantly, or remove them.
> + */
> + if (vnic->flags & BNXT_VNIC_UC_PROMISC_FLAG)
> + return netdev_hw_addr_list_count(uc) <= (BNXT_MAX_UC_ADDRS - 1);
> + /* Commit the overflow state only once the mask is installed, so
> + * that a failed attempt keeps the state marked as changed and the
> + * next retry or rx-mode callback programs the mask again.
> + */
slop
> + netif_addr_lock_bh(dev);
> + if (uc_promisc)
> + vnic->flags |= BNXT_VNIC_UC_PROMISC_FLAG;
> + else
> + vnic->flags &= ~BNXT_VNIC_UC_PROMISC_FLAG;
> + netif_addr_unlock_bh(dev);
prev parent reply other threads:[~2026-09-05 18:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 12:46 Johnathan Browall via B4 Relay
2026-09-04 0:48 ` netdev-bot+sashiko
2026-09-05 18:31 ` Jakub Kicinski [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=20260905113124.32280c67@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=devnull+johnathan.browall.topgolf.com@kernel.org \
--cc=edumazet@google.com \
--cc=johnathan.browall@topgolf.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavan.chebbi@broadcom.com \
--cc=pontus.hallstedt@topgolf.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
all inboxes | Powered by JetHome®