mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
3c59x: Call dev_consume_skb_any instead of dev_kfree_skb.
Replace dev_kfree_skb with dev_consume_skb_any in vortex_start_xmit as it can be called in hard irq and other contexts. dev_consume_skb_any is used when vortext_start_xmit directly consumes the packet instead of dmaing it to the device. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
8fa9524d6b
commit
e5ddf351b1
@ -2086,7 +2086,7 @@ vortex_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
/* ... and the packet rounded to a doubleword. */
|
||||
skb_tx_timestamp(skb);
|
||||
iowrite32_rep(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2);
|
||||
dev_kfree_skb (skb);
|
||||
dev_consume_skb_any (skb);
|
||||
if (ioread16(ioaddr + TxFree) > 1536) {
|
||||
netif_start_queue (dev); /* AKPM: redundant? */
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user