Skip to contentSkip to conversation

net: amd: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

PATCH Applied Yang Wei 2 participants 2 messages Feb 13, 2019 – Feb 14, 2019

Subsystems (2)
lore
Share & tools
lore

Yang Wei

author
#0 lore raw

PATCH 1/1 net: amd: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

From: Yang Wei <[email protected]>

dev_consume_skb_irq() should be called when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly.

---
 drivers/net/ethernet/amd/lance.c | 2 +-
 drivers/net/ethernet/amd/ni65.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/amd/lance.c +1 -1
index b56d84c..f90b454 100644
@@ -1084,7 +1084,7 @@ static irqreturn_t lance_interrupt(int irq, void *dev_id)
 				/* We must free the original skb if it's not a data-only copy
 				   in the bounce buffer. */
 				if (lp->tx_skbuff[entry]) {
-					dev_kfree_skb_irq(lp->tx_skbuff[entry]);
+					dev_consume_skb_irq(lp->tx_skbuff[entry]);
 					lp->tx_skbuff[entry] = NULL;
 				}
 				dirty_tx++;
drivers/net/ethernet/amd/ni65.c +1 -1
index 8931ce6..87ff5d6 100644
@@ -1028,7 +1028,7 @@ static void ni65_xmit_intr(struct net_device *dev,int csr0)
 
 #ifdef XMT_VIA_SKB
 		if(p->tmd_skb[p->tmdlast]) {
-			 dev_kfree_skb_irq(p->tmd_skb[p->tmdlast]);
+			 dev_consume_skb_irq(p->tmd_skb[p->tmdlast]);
 			 p->tmd_skb[p->tmdlast] = NULL;
 		}
 #endif
Signature · 1 line
2.7.4