i40e/igb: Convert to dev_consume_skb_any()
authorRick Jones <rick.jones2@hp.com>
Wed, 17 Sep 2014 03:56:20 +0000 (03:56 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 Oct 2014 09:36:59 +0000 (02:36 -0700)
Convert two more Intel NIC drivers to dev_consume_skb_any() to help
make dropped packet profiling sane.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/igb/igb_main.c

index be039dd6114d5378b5896e6e58d1d10eb0578ca4..267992b3de8afe1a88fc22947dfc756becc63509 100644 (file)
@@ -702,7 +702,7 @@ static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget)
                total_packets += tx_buf->gso_segs;
 
                /* free the skb */
-               dev_kfree_skb_any(tx_buf->skb);
+               dev_consume_skb_any(tx_buf->skb);
 
                /* unmap skb header data */
                dma_unmap_single(tx_ring->dev,
index 2a4e6f1574122a2146ddfc807cc61d95f0b6a41f..3566feab1e0f6957b60072c82a53bbfb0c9f507d 100644 (file)
@@ -6374,7 +6374,7 @@ static bool igb_clean_tx_irq(struct igb_q_vector *q_vector)
                total_packets += tx_buffer->gso_segs;
 
                /* free the skb */
-               dev_kfree_skb_any(tx_buffer->skb);
+               dev_consume_skb_any(tx_buffer->skb);
 
                /* unmap skb header data */
                dma_unmap_single(tx_ring->dev,