Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111899
b: refs/heads/master
c: 6b8f90c
h: refs/heads/master
i:
  111897: fd49268
  111895: aaceb1a
v: v3
  • Loading branch information
Lennert Buytenhek authored and Lennert Buytenhek committed Sep 14, 2008
1 parent 08173b8 commit e4b60ac
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 2b4a624d706d404a3edccb6d1bb2c440a6dbbc31
refs/heads/master: 6b8f90c276ac25cd37f143a00d467a8ccb19c4c6
7 changes: 5 additions & 2 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ static int rxq_process(struct rx_queue *rxq, int budget)
struct rx_desc *rx_desc;
unsigned int cmd_sts;
struct sk_buff *skb;
u16 byte_cnt;

rx_desc = &rxq->rx_desc_area[rxq->rx_curr_desc];

Expand All @@ -499,6 +500,8 @@ static int rxq_process(struct rx_queue *rxq, int budget)

mp->work_rx_refill |= 1 << rxq->index;

byte_cnt = rx_desc->byte_cnt;

/*
* Update statistics.
*
Expand All @@ -508,7 +511,7 @@ static int rxq_process(struct rx_queue *rxq, int budget)
* byte CRC at the end of the packet (which we do count).
*/
stats->rx_packets++;
stats->rx_bytes += rx_desc->byte_cnt - 2;
stats->rx_bytes += byte_cnt - 2;

/*
* In case we received a packet without first / last bits
Expand Down Expand Up @@ -537,7 +540,7 @@ static int rxq_process(struct rx_queue *rxq, int budget)
* The -4 is for the CRC in the trailer of the
* received packet
*/
skb_put(skb, rx_desc->byte_cnt - 2 - 4);
skb_put(skb, byte_cnt - 2 - 4);

if (cmd_sts & LAYER_4_CHECKSUM_OK) {
skb->ip_summed = CHECKSUM_UNNECESSARY;
Expand Down

0 comments on commit e4b60ac

Please sign in to comment.