Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103021
b: refs/heads/master
c: 0a6cf74
h: refs/heads/master
i:
  103019: 3bdf95e
v: v3
  • Loading branch information
Lennert Buytenhek committed Jun 12, 2008
1 parent b6ede32 commit 9dd384b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: e1bea50ac4e950ea3249cfed219f49d6be22d280
refs/heads/master: 0a6cf74dd5ec440b7681880984d9455353f673ec
7 changes: 2 additions & 5 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ static char mv643xx_driver_version[] = "1.0";
#define PORT_DEFAULT_TRANSMIT_QUEUE_SIZE 800
#define PORT_DEFAULT_RECEIVE_QUEUE_SIZE 400

/* Buffer offset from buffer pointer */
#define RX_BUF_OFFSET 0x2

/* Gigabit Ethernet Unit Global Registers */

/* MIB Counters register definitions */
Expand Down Expand Up @@ -691,9 +688,9 @@ static ETH_FUNC_RET_STATUS eth_port_receive(struct mv643xx_private *mp,
return ETH_END_OF_JOB;
}

p_pkt_info->byte_cnt = (p_rx_desc->byte_cnt) - RX_BUF_OFFSET;
p_pkt_info->byte_cnt = p_rx_desc->byte_cnt - ETH_HW_IP_ALIGN;
p_pkt_info->cmd_sts = command_status;
p_pkt_info->buf_ptr = (p_rx_desc->buf_ptr) + RX_BUF_OFFSET;
p_pkt_info->buf_ptr = p_rx_desc->buf_ptr + ETH_HW_IP_ALIGN;
p_pkt_info->return_info = mp->rx_skb[rx_curr_desc];
p_pkt_info->l4i_chk = p_rx_desc->buf_size;

Expand Down

0 comments on commit 9dd384b

Please sign in to comment.