aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e1000e/ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/ethtool.c')
-rw-r--r--drivers/net/ethernet/intel/e1000e/ethtool.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c
index 6a0526a59a8a..e0cbd6a0bde8 100644
--- a/drivers/net/ethernet/intel/e1000e/ethtool.c
+++ b/drivers/net/ethernet/intel/e1000e/ethtool.c
@@ -1195,7 +1195,7 @@ static int e1000_setup_desc_rings(struct e1000_adapter *adapter)
1195 goto err_nomem; 1195 goto err_nomem;
1196 } 1196 }
1197 1197
1198 rx_ring->size = rx_ring->count * sizeof(struct e1000_rx_desc); 1198 rx_ring->size = rx_ring->count * sizeof(union e1000_rx_desc_extended);
1199 rx_ring->desc = dma_alloc_coherent(&pdev->dev, rx_ring->size, 1199 rx_ring->desc = dma_alloc_coherent(&pdev->dev, rx_ring->size,
1200 &rx_ring->dma, GFP_KERNEL); 1200 &rx_ring->dma, GFP_KERNEL);
1201 if (!rx_ring->desc) { 1201 if (!rx_ring->desc) {
@@ -1221,7 +1221,7 @@ static int e1000_setup_desc_rings(struct e1000_adapter *adapter)
1221 ew32(RCTL, rctl); 1221 ew32(RCTL, rctl);
1222 1222
1223 for (i = 0; i < rx_ring->count; i++) { 1223 for (i = 0; i < rx_ring->count; i++) {
1224 struct e1000_rx_desc *rx_desc = E1000_RX_DESC(*rx_ring, i); 1224 union e1000_rx_desc_extended *rx_desc;
1225 struct sk_buff *skb; 1225 struct sk_buff *skb;
1226 1226
1227 skb = alloc_skb(2048 + NET_IP_ALIGN, GFP_KERNEL); 1227 skb = alloc_skb(2048 + NET_IP_ALIGN, GFP_KERNEL);
@@ -1239,8 +1239,9 @@ static int e1000_setup_desc_rings(struct e1000_adapter *adapter)
1239 ret_val = 8; 1239 ret_val = 8;
1240 goto err_nomem; 1240 goto err_nomem;
1241 } 1241 }
1242 rx_desc->buffer_addr = 1242 rx_desc = E1000_RX_DESC_EXT(*rx_ring, i);
1243 cpu_to_le64(rx_ring->buffer_info[i].dma); 1243 rx_desc->read.buffer_addr =
1244 cpu_to_le64(rx_ring->buffer_info[i].dma);
1244 memset(skb->data, 0x00, skb->len); 1245 memset(skb->data, 0x00, skb->len);
1245 } 1246 }
1246 1247