Commit 362a161b authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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: default avatarMichael Chan <michael.chan@broadcom.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent df59bb5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);