tsnep: Forward NAPI budget to napi_consume_skb()
authorGerhard Engleder <gerhard@engleder-embedded.com>
Mon, 16 Jan 2023 20:24:51 +0000 (21:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 13:17:05 +0000 (13:17 +0000)
NAPI budget must be forwarded to napi_consume_skb(). It is used to
detect non-NAPI context.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/engleder/tsnep_main.c

index c182c40277ddc767ae8fe316f187d05ef8c8b0be..8abe65a8c2f1cf00d9b1290c6ba94da46a6fbaad 100644 (file)
@@ -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;