Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256304
b: refs/heads/master
c: bb4f85c
h: refs/heads/master
v: v3
  • Loading branch information
Andre Heider authored and David S. Miller committed Jul 14, 2011
1 parent 5d0e136 commit 722c707
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: e3001c98df51d81a72534837d8069bfb53f3e1ea
refs/heads/master: bb4f85ce1731d78648870333f0ce77123fa162e6
10 changes: 7 additions & 3 deletions trunk/drivers/net/ps3_gelic_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,12 +897,16 @@ int gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev)
if (gelic_card_kick_txdma(card, descr)) {
/*
* kick failed.
* release descriptors which were just prepared
* release descriptor which was just prepared
*/
netdev->stats.tx_dropped++;
/* don't trigger BUG_ON() in gelic_descr_release_tx */
descr->data_status = cpu_to_be32(GELIC_DESCR_TX_TAIL);
gelic_descr_release_tx(card, descr);
gelic_descr_release_tx(card, descr->next);
card->tx_chain.tail = descr->next->next;
/* reset head */
card->tx_chain.head = descr;
/* reset hw termination */
descr->prev->next_descr_addr = 0;
dev_info(ctodev(card), "%s: kick failure\n", __func__);
}

Expand Down

0 comments on commit 722c707

Please sign in to comment.