Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75163
b: refs/heads/master
c: 8a5ed9e
h: refs/heads/master
i:
  75161: 9f58690
  75159: fbc80e2
v: v3
  • Loading branch information
Al Viro authored and Jeff Garzik committed Dec 23, 2007
1 parent 011bb69 commit 6a2b8c5
Show file tree
Hide file tree
Showing 3 changed files with 4 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: b46281f9c5d6ab7b6e412e83f8c62cecf4ebbdfd
refs/heads/master: 8a5ed9efe661dd42bc140e522c2635e0d7b26141
4 changes: 2 additions & 2 deletions trunk/drivers/net/typhoon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ typhoon_recycle_rx_skb(struct typhoon *tp, u32 idx)
struct rx_free *r;

if((ring->lastWrite + sizeof(*r)) % (RXFREE_ENTRIES * sizeof(*r)) ==
indexes->rxBuffCleared) {
le32_to_cpu(indexes->rxBuffCleared)) {
/* no room in ring, just drop the skb
*/
dev_kfree_skb_any(rxb->skb);
Expand Down Expand Up @@ -1627,7 +1627,7 @@ typhoon_alloc_rx_skb(struct typhoon *tp, u32 idx)
rxb->skb = NULL;

if((ring->lastWrite + sizeof(*r)) % (RXFREE_ENTRIES * sizeof(*r)) ==
indexes->rxBuffCleared)
le32_to_cpu(indexes->rxBuffCleared))
return -ENOMEM;

skb = dev_alloc_skb(PKT_BUF_SZ);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/typhoon.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct typhoon_indexes {
volatile __le32 txLoCleared;
volatile __le32 txHiCleared;
volatile __le32 rxLoReady;
volatile __u32 rxBuffCleared; /* AV: really? */
volatile __le32 rxBuffCleared;
volatile __le32 cmdCleared;
volatile __le32 respReady;
volatile __le32 rxHiReady;
Expand Down

0 comments on commit 6a2b8c5

Please sign in to comment.