From: Joe Damato <joe@dama.to>
To: Michael Chan <michael.chan@broadcom.com>
Cc: netdev@vger.kernel.org, Pavan Chebbi <pavan.chebbi@broadcom.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
horms@kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH net] net: bnxt: ring the doorbell when SW USO exits early
Date: Tue, 18 Aug 2026 15:54:46 -0700 [thread overview]
Message-ID: <aoTittBOp+bv1aTz@devvm20253.cco0.facebook.com> (raw)
In-Reply-To: <CACKFLikEOu--B+q88X0pQsHQ0MuLM2onJKWnGGetSptgEpLrsw@mail.gmail.com>
On Tue, Aug 18, 2026 at 03:36:42PM -0700, Michael Chan wrote:
> On Tue, Aug 18, 2026 at 2:15 PM Joe Damato <joe@dama.to> wrote:
[...]
> > diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c
> > index f317f60414e8..3c58b1d94ac9 100644
> > --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c
> > +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c
> > @@ -223,9 +223,7 @@ netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,
> > netdev_tx_sent_queue(txq, skb->len);
> >
> > WRITE_ONCE(txr->tx_prod, prod);
> > - /* Sync BDs before doorbell */
> > - wmb();
> > - bnxt_db_write(bp, &txr->tx_db, prod);
> > + bnxt_txr_db_kick(bp, txr, prod);
>
> The patch looks good to me. But a slightly simpler approach is to
> just set txr->kick_pending here. Upon return, the new logic above
> will always ring the doorbell for the success case. By doing this, we
> don't need to export bnxt_txr_db_kick().
Ah, right. Sorry I missed that; I was rushing too quickly to get this
out :)
I'll send a v2 tomorrow that simplfies the patch as you suggested. Thanks.
prev parent reply other threads:[~2026-08-18 22:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 21:15 [PATCH net] net: bnxt: ring the doorbell when SW USO exits early Joe Damato
2026-08-18 22:36 ` Michael Chan
2026-08-18 22:54 ` Joe Damato [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=aoTittBOp+bv1aTz@devvm20253.cco0.facebook.com \
--to=joe@dama.to \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--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=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