Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57326
b: refs/heads/master
c: b206a65
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik authored and David S. Miller committed Jun 4, 2007
1 parent a4f3394 commit db5ead6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: 3f196eb519a419bf83ecc22753943fd0a0de4f8f
refs/heads/master: b206a65d671d359d0947f0b6da9d418c49a9b28a
15 changes: 11 additions & 4 deletions trunk/drivers/atm/firestream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,7 @@ static void top_off_fp (struct fs_dev *dev, struct freepool *fp,
struct FS_BPENTRY *qe, *ne;
struct sk_buff *skb;
int n = 0;
u32 qe_tmp;

fs_dprintk (FS_DEBUG_QUEUE, "Topping off queue at %x (%d-%d/%d)\n",
fp->offset, read_fs (dev, FP_CNT (fp->offset)), fp->n,
Expand Down Expand Up @@ -1502,10 +1503,16 @@ static void top_off_fp (struct fs_dev *dev, struct freepool *fp,
ne->skb = skb;
ne->fp = fp;

qe = (struct FS_BPENTRY *) (read_fs (dev, FP_EA(fp->offset)));
fs_dprintk (FS_DEBUG_QUEUE, "link at %p\n", qe);
if (qe) {
qe = bus_to_virt ((long) qe);
/*
* FIXME: following code encodes and decodes
* machine pointers (could be 64-bit) into a
* 32-bit register.
*/

qe_tmp = read_fs (dev, FP_EA(fp->offset));
fs_dprintk (FS_DEBUG_QUEUE, "link at %x\n", qe_tmp);
if (qe_tmp) {
qe = bus_to_virt ((long) qe_tmp);
qe->next = virt_to_bus(ne);
qe->flags &= ~FP_FLAGS_EPI;
} else
Expand Down

0 comments on commit db5ead6

Please sign in to comment.