Skip to contentSkip to conversation

be2net: Use dev_consume_skb_any() in the non-drop path

PATCH Applied Rick Jones 2 participants 2 messages Aug 28, 2014 – Aug 30, 2014

Subsystems (3)
lore
Share & tools
lore

Rick Jones

author
#0 lore raw

PATCH 1/1 be2net: Use dev_consume_skb_any() in the non-drop path

From: Rick Jones <[email protected]>

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.

---

Briefly beaten-on with some netperf TCP_RR tests, but not tried with perf because I'm too clueless to get the 3.17.0-rc1 perf and all it seems to want onto my "Precise" test system :(

drivers/net/ethernet/emulex/benet/be_main.c +1 -1
index 93ff8ef..42e9cea 100644
@@ -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;
 }