mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02: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:
parent
df59bb5b9a
commit
362a161b25
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user