diff options
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index ba1348f3b25b..fea99b7fb6a4 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -169,9 +169,6 @@ static char mv643xx_driver_version[] = "1.0"; | |||
169 | #define PORT_DEFAULT_TRANSMIT_QUEUE_SIZE 800 | 169 | #define PORT_DEFAULT_TRANSMIT_QUEUE_SIZE 800 |
170 | #define PORT_DEFAULT_RECEIVE_QUEUE_SIZE 400 | 170 | #define PORT_DEFAULT_RECEIVE_QUEUE_SIZE 400 |
171 | 171 | ||
172 | /* Buffer offset from buffer pointer */ | ||
173 | #define RX_BUF_OFFSET 0x2 | ||
174 | |||
175 | /* Gigabit Ethernet Unit Global Registers */ | 172 | /* Gigabit Ethernet Unit Global Registers */ |
176 | 173 | ||
177 | /* MIB Counters register definitions */ | 174 | /* MIB Counters register definitions */ |
@@ -691,9 +688,9 @@ static ETH_FUNC_RET_STATUS eth_port_receive(struct mv643xx_private *mp, | |||
691 | return ETH_END_OF_JOB; | 688 | return ETH_END_OF_JOB; |
692 | } | 689 | } |
693 | 690 | ||
694 | p_pkt_info->byte_cnt = (p_rx_desc->byte_cnt) - RX_BUF_OFFSET; | 691 | p_pkt_info->byte_cnt = p_rx_desc->byte_cnt - ETH_HW_IP_ALIGN; |
695 | p_pkt_info->cmd_sts = command_status; | 692 | p_pkt_info->cmd_sts = command_status; |
696 | p_pkt_info->buf_ptr = (p_rx_desc->buf_ptr) + RX_BUF_OFFSET; | 693 | p_pkt_info->buf_ptr = p_rx_desc->buf_ptr + ETH_HW_IP_ALIGN; |
697 | p_pkt_info->return_info = mp->rx_skb[rx_curr_desc]; | 694 | p_pkt_info->return_info = mp->rx_skb[rx_curr_desc]; |
698 | p_pkt_info->l4i_chk = p_rx_desc->buf_size; | 695 | p_pkt_info->l4i_chk = p_rx_desc->buf_size; |
699 | 696 | ||