diff options
Diffstat (limited to 'drivers/net/mlx4/en_rx.c')
-rw-r--r-- | drivers/net/mlx4/en_rx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c index 829b9ec9ff67..64394647dddc 100644 --- a/drivers/net/mlx4/en_rx.c +++ b/drivers/net/mlx4/en_rx.c | |||
@@ -508,11 +508,11 @@ static struct sk_buff *mlx4_en_rx_skb(struct mlx4_en_priv *priv, | |||
508 | /* We are copying all relevant data to the skb - temporarily | 508 | /* We are copying all relevant data to the skb - temporarily |
509 | * synch buffers for the copy */ | 509 | * synch buffers for the copy */ |
510 | dma = be64_to_cpu(rx_desc->data[0].addr); | 510 | dma = be64_to_cpu(rx_desc->data[0].addr); |
511 | dma_sync_single_range_for_cpu(&mdev->pdev->dev, dma, 0, | 511 | dma_sync_single_for_cpu(&mdev->pdev->dev, dma, length, |
512 | length, DMA_FROM_DEVICE); | 512 | DMA_FROM_DEVICE); |
513 | skb_copy_to_linear_data(skb, va, length); | 513 | skb_copy_to_linear_data(skb, va, length); |
514 | dma_sync_single_range_for_device(&mdev->pdev->dev, dma, 0, | 514 | dma_sync_single_for_device(&mdev->pdev->dev, dma, length, |
515 | length, DMA_FROM_DEVICE); | 515 | DMA_FROM_DEVICE); |
516 | skb->tail += length; | 516 | skb->tail += length; |
517 | } else { | 517 | } else { |
518 | 518 | ||