]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: move DMA map into hns3_fill_desc
authorPeng Li <lipeng321@huawei.com>
Tue, 16 Oct 2018 11:58:49 +0000 (19:58 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commit91040825b2b72b195d56d61bbbc1114f26b39185
tree2e39110d663bd2e749c86b22fb1a0c5ad555066f
parente4c38d6ef6d400106ff551cac491580295c4302c
net: hns3: move DMA map into hns3_fill_desc

BugLink: https://bugs.launchpad.net/bugs/1810457
To solve the L3 checksum error problem which happens when driver
does not clear L3 checksum, DMA map should be done after calling
skb_cow_head.

This patch moves DMA map into hns3_fill_desc to ensure that DMA
map is done after calling skb_cow_head.

Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 5188f218fc860da15755bfa5cc357baf2114d586)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h