]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
eth: bnxt: make use of napi_consume_skb()
authorJakub Kicinski <kuba@kernel.org>
Wed, 26 Nov 2025 03:48:19 +0000 (19:48 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Nov 2025 01:44:01 +0000 (17:44 -0800)
As those following recent changes from Eric know very well
using NAPI skb cache is crucial to achieve good perf, at
least on recent AMD platforms. Make sure bnxt feeds the skb
cache with Tx skbs.

Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index a625e7c311dd7e5f10a0d1f17603ccf109286585..8f95f5f29e0089ae8c9ef489118119b7840e6108 100644 (file)
@@ -877,7 +877,7 @@ static bool __bnxt_tx_int(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
 next_tx_int:
                cons = NEXT_TX(cons);
 
-               dev_consume_skb_any(skb);
+               napi_consume_skb(skb, budget);
        }
 
        WRITE_ONCE(txr->tx_cons, cons);