net: 3com: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei <yang.wei9@zte.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

zatwierdzone przez
David S. Miller

rodzic
67633e7864
commit
467d2fceaf
@@ -1177,7 +1177,7 @@ static irqreturn_t corkscrew_interrupt(int irq, void *dev_id)
|
||||
if (inl(ioaddr + DownListPtr) == isa_virt_to_bus(&lp->tx_ring[entry]))
|
||||
break; /* It still hasn't been processed. */
|
||||
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++;
|
||||
@@ -1192,7 +1192,7 @@ static irqreturn_t corkscrew_interrupt(int irq, void *dev_id)
|
||||
#ifdef VORTEX_BUS_MASTER
|
||||
if (status & DMADone) {
|
||||
outw(0x1000, ioaddr + Wn7_MasterStatus); /* Ack the event. */
|
||||
dev_kfree_skb_irq(lp->tx_skb); /* Release the transferred buffer */
|
||||
dev_consume_skb_irq(lp->tx_skb); /* Release the transferred buffer */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user