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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 17:09:59 +0000 (10:09 -0700)
commit5188f218fc860da15755bfa5cc357baf2114d586
tree56d6fec70c66a61522c6f4be606b81ac6eb68d85
parent0bbbf15dea4ffec4206cea22e8b54e61203a42a2
net: hns3: move DMA map into hns3_fill_desc

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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h