Skip to content

Commit

Permalink
ionic: Make use napi_consume_skb
Browse files Browse the repository at this point in the history
Make use of napi_consume_skb so that skb recycling
can happen by way of the napi_skb_cache.

Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
brettcreeley authored and davem330 committed Mar 4, 2024
1 parent 97085cd commit 386e698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/pensando/ionic/ionic_txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ static void ionic_tx_clean(struct ionic_queue *q,
desc_info->bytes = skb->len;
stats->clean++;

dev_consume_skb_any(skb);
napi_consume_skb(skb, 1);
}

static bool ionic_tx_service(struct ionic_cq *cq, struct ionic_cq_info *cq_info)
Expand Down

0 comments on commit 386e698

Please sign in to comment.