Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39423
b: refs/heads/master
c: 68a8c60
h: refs/heads/master
i:
  39421: a0bdad7
  39419: 7f1dc4e
  39415: 4daf19a
  39407: b4efa1c
  39391: 1e952bc
  39359: 3426512
  39295: b872442
  39167: d078a26
  38911: 270a202
v: v3
  • Loading branch information
Linas Vepstas authored and Jeff Garzik committed Oct 11, 2006
1 parent c0131de commit b89ca2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 204e5fa17c7ba45a89989f8da6dfe8e54d64b79b
refs/heads/master: 68a8c609b3071c2441fa64f584d15311f2c10e61
16 changes: 8 additions & 8 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ spider_net_release_tx_descr(struct spider_net_card *card)
len = skb->len < ETH_ZLEN ? ETH_ZLEN : skb->len;
pci_unmap_single(card->pdev, descr->buf_addr, len,
PCI_DMA_TODEVICE);
dev_kfree_skb_any(skb);
dev_kfree_skb(skb);
}

static void
Expand Down Expand Up @@ -885,9 +885,10 @@ spider_net_xmit(struct sk_buff *skb, struct net_device *netdev)
* spider_net_cleanup_tx_ring - cleans up the TX ring
* @card: card structure
*
* spider_net_cleanup_tx_ring is called by the tx_timer (as we don't use
* interrupts to cleanup our TX ring) and returns sent packets to the stack
* by freeing them
* spider_net_cleanup_tx_ring is called by either the tx_timer
* or from the NAPI polling routine.
* This routine releases resources associted with transmitted
* packets, including updating the queue tail pointer.
*/
static void
spider_net_cleanup_tx_ring(struct spider_net_card *card)
Expand Down Expand Up @@ -1092,6 +1093,7 @@ spider_net_poll(struct net_device *netdev, int *budget)
int packets_to_do, packets_done = 0;
int no_more_packets = 0;

spider_net_cleanup_tx_ring(card);
packets_to_do = min(*budget, netdev->quota);

while (packets_to_do) {
Expand Down Expand Up @@ -1504,10 +1506,8 @@ spider_net_interrupt(int irq, void *ptr)
spider_net_rx_irq_off(card);
netif_rx_schedule(netdev);
}
if (status_reg & SPIDER_NET_TXINT ) {
spider_net_cleanup_tx_ring(card);
netif_wake_queue(netdev);
}
if (status_reg & SPIDER_NET_TXINT)
netif_rx_schedule(netdev);

if (status_reg & SPIDER_NET_ERRINT )
spider_net_handle_error_irq(card, status_reg);
Expand Down

0 comments on commit b89ca2b

Please sign in to comment.