]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sfc: Convert the normal transmit complete path to dev_consume_skb_any()
authorRick Jones <rick.jones2@hp.com>
Tue, 9 Sep 2014 21:43:27 +0000 (14:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 00:33:56 +0000 (17:33 -0700)
Convert the normal transmit completion path from dev_kfree_skb_any()
to dev_consume_skb_any() to help keep dropped packet profiling
meaningful.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/tx.c

index 65c220f8661df1a39267e94e9e17de775efd5055..32060984221195793ee6eced35b68d64f559c614 100644 (file)
@@ -78,7 +78,7 @@ static void efx_dequeue_buffer(struct efx_tx_queue *tx_queue,
        if (buffer->flags & EFX_TX_BUF_SKB) {
                (*pkts_compl)++;
                (*bytes_compl) += buffer->skb->len;
-               dev_kfree_skb_any((struct sk_buff *) buffer->skb);
+               dev_consume_skb_any((struct sk_buff *)buffer->skb);
                netif_vdbg(tx_queue->efx, tx_done, tx_queue->efx->net_dev,
                           "TX queue %d transmission id %x complete\n",
                           tx_queue->queue, tx_queue->read_count);