Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129807
b: refs/heads/master
c: a58c891
h: refs/heads/master
i:
  129805: e9ecaf9
  129803: 75b5d80
  129799: b64147a
  129791: bb48d71
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 15, 2009
1 parent 8c07ff3 commit 51dde54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: 1c5625cf0f121486abad4da0e0251ec67765aa95
refs/heads/master: a58c891a53aca81c78f9cbe0572a301042470e96
4 changes: 3 additions & 1 deletion trunk/drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ static int b44_alloc_rx_skb(struct b44 *bp, int src_idx, u32 dest_idx_unmasked)
dev_kfree_skb_any(skb);
return -ENOMEM;
}
bp->force_copybreak = 1;
}

rh = (struct rx_header *) skb->data;
Expand Down Expand Up @@ -800,7 +801,7 @@ static int b44_rx(struct b44 *bp, int budget)
/* Omit CRC. */
len -= 4;

if (len > RX_COPY_THRESHOLD) {
if (!bp->force_copybreak && len > RX_COPY_THRESHOLD) {
int skb_size;
skb_size = b44_alloc_rx_skb(bp, cons, bp->rx_prod);
if (skb_size < 0)
Expand Down Expand Up @@ -2152,6 +2153,7 @@ static int __devinit b44_init_one(struct ssb_device *sdev,
bp = netdev_priv(dev);
bp->sdev = sdev;
bp->dev = dev;
bp->force_copybreak = 0;

bp->msg_enable = netif_msg_init(b44_debug, B44_DEF_MSG_ENABLE);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/b44.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ struct b44 {
u32 rx_pending;
u32 tx_pending;
u8 phy_addr;

u8 force_copybreak;
struct mii_if_info mii_if;
};

Expand Down

0 comments on commit 51dde54

Please sign in to comment.