Skip to content

Commit

Permalink
be2net: Use dev_consume_skb_any() in the non-drop path
Browse files Browse the repository at this point in the history
The be2net driver was still using dev_kfree_skb_any() in a "normal"
skb freeing path.  This rather clutters perf top -G -e skb_kfree_skb
profiling.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rick Jones authored and David S. Miller committed Aug 30, 2014
1 parent 56daf66 commit 96d4922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ static u16 be_tx_compl_process(struct be_adapter *adapter,
queue_tail_inc(txq);
} while (cur_index != last_index);

dev_kfree_skb_any(sent_skb);
dev_consume_skb_any(sent_skb);
return num_wrbs;
}

Expand Down

0 comments on commit 96d4922

Please sign in to comment.