summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2018-02-15 11:27:06 -0500
committerSaeed Mahameed <saeedm@mellanox.com>2018-03-27 20:17:27 -0400
commit24fd07abfa3584b91f65002956d3d5a5db169185 (patch)
treeef2462345d70e1449ca3c9048c5b9d25b10bad3b
parentbd658dda423781dbe775a2d87d662a3145ec05a6 (diff)
net/mlx5e: Use no-offset function in skb header copy
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>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_rx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
index ffcbe5c3818a..781b8f21d6d1 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
@@ -333,9 +333,8 @@ mlx5e_copy_skb_header_mpwqe(struct device *pdev,
333 len = ALIGN(headlen_pg, sizeof(long)); 333 len = ALIGN(headlen_pg, sizeof(long));
334 dma_sync_single_for_cpu(pdev, dma_info->addr + offset, len, 334 dma_sync_single_for_cpu(pdev, dma_info->addr + offset, len,
335 DMA_FROM_DEVICE); 335 DMA_FROM_DEVICE);
336 skb_copy_to_linear_data_offset(skb, 0, 336 skb_copy_to_linear_data(skb, page_address(dma_info->page) + offset, len);
337 page_address(dma_info->page) + offset, 337
338 len);
339 if (unlikely(offset + headlen > PAGE_SIZE)) { 338 if (unlikely(offset + headlen > PAGE_SIZE)) {
340 dma_info++; 339 dma_info++;
341 headlen_pg = len; 340 headlen_pg = len;