From: Gerhard Engleder Date: Mon, 16 Jan 2023 20:24:51 +0000 (+0100) Subject: tsnep: Forward NAPI budget to napi_consume_skb() X-Git-Tag: v6.6.7~3490^2~265^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0625dff38b1791005c2a3dbb85ec6ea58b567555;p=platform%2Fkernel%2Flinux-starfive.git tsnep: Forward NAPI budget to napi_consume_skb() NAPI budget must be forwarded to napi_consume_skb(). It is used to detect non-NAPI context. Signed-off-by: Gerhard Engleder Reviewed-by: Alexander Duyck Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c index c182c40277dd..8abe65a8c2f1 100644 --- a/drivers/net/ethernet/engleder/tsnep_main.c +++ b/drivers/net/ethernet/engleder/tsnep_main.c @@ -544,7 +544,7 @@ static bool tsnep_tx_poll(struct tsnep_tx *tx, int napi_budget) skb_tstamp_tx(entry->skb, &hwtstamps); } - napi_consume_skb(entry->skb, budget); + napi_consume_skb(entry->skb, napi_budget); entry->skb = NULL; tx->read = (tx->read + count) % TSNEP_RING_SIZE;