Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184282
b: refs/heads/master
c: c0c5695
h: refs/heads/master
v: v3
  • Loading branch information
Ron Mercer authored and David S. Miller committed Feb 17, 2010
1 parent 08168a2 commit 8b50c83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 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: 8ea7a37c5a312bfee51ff7f12f78efe4fbc901cc
refs/heads/master: c0c56955e7325ba2f910c760111457adc21ef0d4
20 changes: 5 additions & 15 deletions trunk/drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2066,21 +2066,11 @@ static unsigned long ql_process_mac_rx_intr(struct ql_adapter *qdev,
ql_process_mac_rx_page(qdev, rx_ring, ib_mac_rsp,
length, vlan_id);
} else {
struct bq_desc *lbq_desc;

/* Free small buffer that holds the IAL */
lbq_desc = ql_get_curr_sbuf(rx_ring);
netif_err(qdev, rx_err, qdev->ndev,
"Dropping frame, len %d > mtu %d\n",
length, qdev->ndev->mtu);

/* Unwind the large buffers for this frame. */
while (length > 0) {
lbq_desc = ql_get_curr_lchunk(qdev, rx_ring);
length -= (length < rx_ring->lbq_buf_size) ?
length : rx_ring->lbq_buf_size;
put_page(lbq_desc->p.pg_chunk.page);
}
/* Non-TCP/UDP large frames that span multiple buffers
* can be processed corrrectly by the split frame logic.
*/
ql_process_mac_split_rx_intr(qdev, rx_ring, ib_mac_rsp,
vlan_id);
}

return (unsigned long)length;
Expand Down

0 comments on commit 8b50c83

Please sign in to comment.