]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net/mlx5e: Use no-offset function in skb header copy
authorTariq Toukan <tariqt@mellanox.com>
Thu, 15 Feb 2018 16:27:06 +0000 (18:27 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 28 Mar 2018 00:17:27 +0000 (17:17 -0700)
In copying skb header to skb->data, replace the call to
skb_copy_to_linear_data_offset() with a zero offset with
the call to the no-offset function skb_copy_to_linear_data().

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

index ffcbe5c3818a202d10ad04bffaa5c591999aab5c..781b8f21d6d1ac7f43446a22312b907f74cd0626 100644 (file)
@@ -333,9 +333,8 @@ mlx5e_copy_skb_header_mpwqe(struct device *pdev,
        len = ALIGN(headlen_pg, sizeof(long));
        dma_sync_single_for_cpu(pdev, dma_info->addr + offset, len,
                                DMA_FROM_DEVICE);
-       skb_copy_to_linear_data_offset(skb, 0,
-                                      page_address(dma_info->page) + offset,
-                                      len);
+       skb_copy_to_linear_data(skb, page_address(dma_info->page) + offset, len);
+
        if (unlikely(offset + headlen > PAGE_SIZE)) {
                dma_info++;
                headlen_pg = len;