mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
eth: bnxt: make use of napi_consume_skb()
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user