Skip to content

Commit fe1f2a9

Browse files
Rick JonesJeff Kirsher
authored andcommitted
ixgbe: Convert the normal transmit complete path to dev_consume_skb_any()
Convert the normal packet completion path to dev_consume_skb_any() so packet drop profiling via dropwatch or perf top -G -e skb_kfree_skb is not cluttered with false hits. Compile tested only. There is a dev_kfree_skb_any() in the routine ixgbe_ptp_tx_hwtstamp() in ixgbe_ptp.c that looks like a conversion candidate but I wasn't familiar enough with the code to pull the trigger. Signed-off-by: Rick Jones <rick.jones2@hp.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent c9d4994 commit fe1f2a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/intel/ixgbe/ixgbe_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_q_vector *q_vector,
10941094
total_packets += tx_buffer->gso_segs;
10951095

10961096
/* free the skb */
1097-
dev_kfree_skb_any(tx_buffer->skb);
1097+
dev_consume_skb_any(tx_buffer->skb);
10981098

10991099
/* unmap skb header data */
11001100
dma_unmap_single(tx_ring->dev,

0 commit comments

Comments
 (0)